huaweicloudsdkcodeartsbuild 3.1.164__py3-none-any.whl → 3.1.166__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkcodeartsbuild/v3/__init__.py +66 -0
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1553 -172
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1553 -172
- huaweicloudsdkcodeartsbuild/v3/model/__init__.py +66 -0
- huaweicloudsdkcodeartsbuild/v3/model/add_favourite_custom_template_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/add_favourite_custom_template_response.py +116 -0
- huaweicloudsdkcodeartsbuild/v3/model/add_keystore_permission_request_body.py +30 -1
- huaweicloudsdkcodeartsbuild/v3/model/apply_project_permission_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/apply_project_permission_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/batch_delete_build_jobs_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/batch_delete_build_jobs_request_body.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/batch_delete_build_jobs_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/batch_update_job_role_permission_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/batch_update_job_role_permission_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_job_internal_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_job_internal_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/countdown_list.py +256 -0
- huaweicloudsdkcodeartsbuild/v3/model/countdown_list_tips.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/countdown_request_body.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/create_job_group_request.py +139 -0
- huaweicloudsdkcodeartsbuild/v3/model/create_job_group_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_group_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_group_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/domain_statuses.py +521 -0
- huaweicloudsdkcodeartsbuild/v3/model/domains_statuses_request_body.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/end_point_response.py +339 -0
- huaweicloudsdkcodeartsbuild/v3/model/end_point_response_authorization.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/end_point_response_created_by.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_group_request_body.py +231 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_group_response_body_result.py +434 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_group_tree_response_body.py +434 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_role_permission.py +434 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_status_result_response_body_result.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_end_points_request.py +171 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_end_points_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_end_points_result_response_body_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_group_tree_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_group_tree_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/move_group_request.py +139 -0
- huaweicloudsdkcodeartsbuild/v3/model/move_group_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/move_job_group_request_body.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/move_job_group_request_body_jobs.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/move_job_group_response_body_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/project_permission_request_body.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/remover_favourite_custom_template_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/remover_favourite_custom_template_response.py +116 -0
- huaweicloudsdkcodeartsbuild/v3/model/role_permissions_request_body.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_available_inner_spec_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_available_inner_spec_response.py +116 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_details_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_details_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_domain_status_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_domain_status_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_domain_status_result.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_domains_statuses_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_domains_statuses_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_package_spec_count_down_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_package_spec_count_down_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_template_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_template_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_charge_type_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_charge_type_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_charge_type_result.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_charge_type_result_main_resource_list.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/switched_packet_request.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/switched_packet_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/tips.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_job_group_request.py +139 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_job_group_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_new_notice_new_request.py +139 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_new_notice_new_response.py +174 -0
- {huaweicloudsdkcodeartsbuild-3.1.164.dist-info → huaweicloudsdkcodeartsbuild-3.1.166.dist-info}/METADATA +9 -10
- {huaweicloudsdkcodeartsbuild-3.1.164.dist-info → huaweicloudsdkcodeartsbuild-3.1.166.dist-info}/RECORD +75 -10
- {huaweicloudsdkcodeartsbuild-3.1.164.dist-info → huaweicloudsdkcodeartsbuild-3.1.166.dist-info}/WHEEL +1 -2
- huaweicloudsdkcodeartsbuild-3.1.164.dist-info/top_level.txt +0 -1
- {huaweicloudsdkcodeartsbuild-3.1.164.dist-info → huaweicloudsdkcodeartsbuild-3.1.166.dist-info/licenses}/LICENSE +0 -0
@@ -33,6 +33,71 @@ class CodeArtsBuildAsyncClient(Client):
|
|
33
33
|
|
34
34
|
return client_builder
|
35
35
|
|
36
|
+
def batch_delete_build_jobs_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 BatchDeleteBuildJobs
|
45
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.BatchDeleteBuildJobsRequest`
|
46
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.BatchDeleteBuildJobsResponse`
|
47
|
+
"""
|
48
|
+
http_info = self._batch_delete_build_jobs_http_info(request)
|
49
|
+
return self._call_api(**http_info)
|
50
|
+
|
51
|
+
def batch_delete_build_jobs_async_invoker(self, request):
|
52
|
+
http_info = self._batch_delete_build_jobs_http_info(request)
|
53
|
+
return AsyncInvoker(self, http_info)
|
54
|
+
|
55
|
+
def _batch_delete_build_jobs_http_info(self, 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_async(self, request):
|
37
102
|
r"""创建构建任务
|
38
103
|
|
@@ -1986,31 +2051,31 @@ class CodeArtsBuildAsyncClient(Client):
|
|
1986
2051
|
|
1987
2052
|
return http_info
|
1988
2053
|
|
1989
|
-
def
|
1990
|
-
r"""
|
2054
|
+
def show_available_inner_spec_async(self, request):
|
2055
|
+
r"""查内置执行机规格
|
1991
2056
|
|
1992
|
-
|
2057
|
+
查内置执行机规格。
|
1993
2058
|
|
1994
2059
|
Please refer to HUAWEI cloud API Explorer for details.
|
1995
2060
|
|
1996
2061
|
|
1997
|
-
:param request: Request instance for
|
1998
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1999
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2062
|
+
:param request: Request instance for ShowAvailableInnerSpec
|
2063
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowAvailableInnerSpecRequest`
|
2064
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowAvailableInnerSpecResponse`
|
2000
2065
|
"""
|
2001
|
-
http_info = self.
|
2066
|
+
http_info = self._show_available_inner_spec_http_info(request)
|
2002
2067
|
return self._call_api(**http_info)
|
2003
2068
|
|
2004
|
-
def
|
2005
|
-
http_info = self.
|
2069
|
+
def show_available_inner_spec_async_invoker(self, request):
|
2070
|
+
http_info = self._show_available_inner_spec_http_info(request)
|
2006
2071
|
return AsyncInvoker(self, http_info)
|
2007
2072
|
|
2008
|
-
def
|
2073
|
+
def _show_available_inner_spec_http_info(self, request):
|
2009
2074
|
http_info = {
|
2010
2075
|
"method": "GET",
|
2011
|
-
"resource_path": "/
|
2076
|
+
"resource_path": "/v2/resource/spec",
|
2012
2077
|
"request_type": request.__class__.__name__,
|
2013
|
-
"response_type": "
|
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
2051
2118
|
|
2052
2119
|
return http_info
|
2053
2120
|
|
2054
|
-
def
|
2055
|
-
r"""
|
2121
|
+
def show_domain_status_async(self, request):
|
2122
|
+
r"""查询租户状态
|
2056
2123
|
|
2057
|
-
|
2124
|
+
查询租户状态。
|
2058
2125
|
|
2059
2126
|
Please refer to HUAWEI cloud API Explorer for details.
|
2060
2127
|
|
2061
2128
|
|
2062
|
-
:param request: Request instance for
|
2063
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2064
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2129
|
+
:param request: Request instance for ShowDomainStatus
|
2130
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDomainStatusRequest`
|
2131
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDomainStatusResponse`
|
2065
2132
|
"""
|
2066
|
-
http_info = self.
|
2133
|
+
http_info = self._show_domain_status_http_info(request)
|
2067
2134
|
return self._call_api(**http_info)
|
2068
2135
|
|
2069
|
-
def
|
2070
|
-
http_info = self.
|
2136
|
+
def show_domain_status_async_invoker(self, request):
|
2137
|
+
http_info = self._show_domain_status_http_info(request)
|
2071
2138
|
return AsyncInvoker(self, http_info)
|
2072
2139
|
|
2073
|
-
def
|
2140
|
+
def _show_domain_status_http_info(self, request):
|
2074
2141
|
http_info = {
|
2075
2142
|
"method": "GET",
|
2076
|
-
"resource_path": "/v1/domain/
|
2143
|
+
"resource_path": "/v1/domain/status",
|
2077
2144
|
"request_type": request.__class__.__name__,
|
2078
|
-
"response_type": "
|
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 CodeArtsBuildAsyncClient(Client):
|
|
2114
2181
|
|
2115
2182
|
return http_info
|
2116
2183
|
|
2117
|
-
def
|
2118
|
-
r"""
|
2184
|
+
def show_package_spec_count_down_async(self, request):
|
2185
|
+
r"""获取套餐临期信息
|
2119
2186
|
|
2120
|
-
|
2187
|
+
获取套餐临期信息。
|
2121
2188
|
|
2122
2189
|
Please refer to HUAWEI cloud API Explorer for details.
|
2123
2190
|
|
2124
2191
|
|
2125
|
-
:param request: Request instance for
|
2126
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2127
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2192
|
+
:param request: Request instance for ShowPackageSpecCountDown
|
2193
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowPackageSpecCountDownRequest`
|
2194
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowPackageSpecCountDownResponse`
|
2128
2195
|
"""
|
2129
|
-
http_info = self.
|
2196
|
+
http_info = self._show_package_spec_count_down_http_info(request)
|
2130
2197
|
return self._call_api(**http_info)
|
2131
2198
|
|
2132
|
-
def
|
2133
|
-
http_info = self.
|
2199
|
+
def show_package_spec_count_down_async_invoker(self, request):
|
2200
|
+
http_info = self._show_package_spec_count_down_http_info(request)
|
2134
2201
|
return AsyncInvoker(self, http_info)
|
2135
2202
|
|
2136
|
-
def
|
2203
|
+
def _show_package_spec_count_down_http_info(self, request):
|
2137
2204
|
http_info = {
|
2138
|
-
"method": "
|
2139
|
-
"resource_path": "/
|
2205
|
+
"method": "POST",
|
2206
|
+
"resource_path": "/v2/resource/countdown",
|
2140
2207
|
"request_type": request.__class__.__name__,
|
2141
|
-
"response_type": "
|
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
2177
2246
|
|
2178
2247
|
return http_info
|
2179
2248
|
|
2180
|
-
def
|
2181
|
-
r"""
|
2249
|
+
def show_project_permission_async(self, request):
|
2250
|
+
r"""获取用户权限
|
2182
2251
|
|
2183
|
-
|
2252
|
+
获取用户权限
|
2184
2253
|
|
2185
2254
|
Please refer to HUAWEI cloud API Explorer for details.
|
2186
2255
|
|
2187
2256
|
|
2188
|
-
:param request: Request instance for
|
2189
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2190
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2257
|
+
:param request: Request instance for ShowProjectPermission
|
2258
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectPermissionRequest`
|
2259
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectPermissionResponse`
|
2191
2260
|
"""
|
2192
|
-
http_info = self.
|
2261
|
+
http_info = self._show_project_permission_http_info(request)
|
2193
2262
|
return self._call_api(**http_info)
|
2194
2263
|
|
2195
|
-
def
|
2196
|
-
http_info = self.
|
2264
|
+
def show_project_permission_async_invoker(self, request):
|
2265
|
+
http_info = self._show_project_permission_http_info(request)
|
2197
2266
|
return AsyncInvoker(self, http_info)
|
2198
2267
|
|
2199
|
-
def
|
2268
|
+
def _show_project_permission_http_info(self, request):
|
2200
2269
|
http_info = {
|
2201
2270
|
"method": "GET",
|
2202
|
-
"resource_path": "/v1/domain/
|
2271
|
+
"resource_path": "/v1/domain/user-permission",
|
2203
2272
|
"request_type": request.__class__.__name__,
|
2204
|
-
"response_type": "
|
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 CodeArtsBuildAsyncClient(Client):
|
|
2242
2311
|
|
2243
2312
|
return http_info
|
2244
2313
|
|
2245
|
-
def
|
2246
|
-
r"""
|
2314
|
+
def show_related_project_async(self, request):
|
2315
|
+
r"""获取当前用户的项目信息列表
|
2247
2316
|
|
2248
|
-
|
2317
|
+
获取当前用户的项目信息列表
|
2249
2318
|
|
2250
2319
|
Please refer to HUAWEI cloud API Explorer for details.
|
2251
2320
|
|
2252
2321
|
|
2253
|
-
:param request: Request instance for
|
2254
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2255
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2322
|
+
:param request: Request instance for ShowRelatedProject
|
2323
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRelatedProjectRequest`
|
2324
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRelatedProjectResponse`
|
2256
2325
|
"""
|
2257
|
-
http_info = self.
|
2326
|
+
http_info = self._show_related_project_http_info(request)
|
2258
2327
|
return self._call_api(**http_info)
|
2259
2328
|
|
2260
|
-
def
|
2261
|
-
http_info = self.
|
2329
|
+
def show_related_project_async_invoker(self, request):
|
2330
|
+
http_info = self._show_related_project_http_info(request)
|
2262
2331
|
return AsyncInvoker(self, http_info)
|
2263
2332
|
|
2264
|
-
def
|
2333
|
+
def _show_related_project_http_info(self, request):
|
2265
2334
|
http_info = {
|
2266
2335
|
"method": "GET",
|
2267
|
-
"resource_path": "/v1/
|
2336
|
+
"resource_path": "/v1/domain/project/related",
|
2268
2337
|
"request_type": request.__class__.__name__,
|
2269
|
-
"response_type": "
|
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
2307
2374
|
|
2308
2375
|
return http_info
|
2309
2376
|
|
2310
|
-
def
|
2311
|
-
r"""
|
2377
|
+
def show_summary_build_job_info_async(self, request):
|
2378
|
+
r"""获取租户任务总数和成功率接口
|
2312
2379
|
|
2313
|
-
|
2380
|
+
获取租户任务总数和成功率接口
|
2314
2381
|
|
2315
2382
|
Please refer to HUAWEI cloud API Explorer for details.
|
2316
2383
|
|
2317
2384
|
|
2318
|
-
:param request: Request instance for
|
2319
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2320
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2385
|
+
:param request: Request instance for ShowSummaryBuildJobInfo
|
2386
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowSummaryBuildJobInfoRequest`
|
2387
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowSummaryBuildJobInfoResponse`
|
2321
2388
|
"""
|
2322
|
-
http_info = self.
|
2389
|
+
http_info = self._show_summary_build_job_info_http_info(request)
|
2323
2390
|
return self._call_api(**http_info)
|
2324
2391
|
|
2325
|
-
def
|
2326
|
-
http_info = self.
|
2392
|
+
def show_summary_build_job_info_async_invoker(self, request):
|
2393
|
+
http_info = self._show_summary_build_job_info_http_info(request)
|
2327
2394
|
return AsyncInvoker(self, http_info)
|
2328
2395
|
|
2329
|
-
def
|
2396
|
+
def _show_summary_build_job_info_http_info(self, request):
|
2330
2397
|
http_info = {
|
2331
2398
|
"method": "GET",
|
2332
|
-
"resource_path": "/v1/
|
2399
|
+
"resource_path": "/v1/domain/job-summary",
|
2333
2400
|
"request_type": request.__class__.__name__,
|
2334
|
-
"response_type": "
|
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 CodeArtsBuildAsyncClient(Client):
|
|
2370
2437
|
|
2371
2438
|
return http_info
|
2372
2439
|
|
2373
|
-
def
|
2374
|
-
r"""
|
2440
|
+
def show_user_charge_type_async(self, request):
|
2441
|
+
r"""查询当前租户(计费)类型
|
2375
2442
|
|
2376
|
-
|
2443
|
+
查询当前租户(计费)类型。
|
2377
2444
|
|
2378
2445
|
Please refer to HUAWEI cloud API Explorer for details.
|
2379
2446
|
|
2380
2447
|
|
2381
|
-
:param request: Request instance for
|
2382
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2383
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2448
|
+
:param request: Request instance for ShowUserChargeType
|
2449
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowUserChargeTypeRequest`
|
2450
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowUserChargeTypeResponse`
|
2384
2451
|
"""
|
2385
|
-
http_info = self.
|
2452
|
+
http_info = self._show_user_charge_type_http_info(request)
|
2386
2453
|
return self._call_api(**http_info)
|
2387
2454
|
|
2388
|
-
def
|
2389
|
-
http_info = self.
|
2455
|
+
def show_user_charge_type_async_invoker(self, request):
|
2456
|
+
http_info = self._show_user_charge_type_http_info(request)
|
2390
2457
|
return AsyncInvoker(self, http_info)
|
2391
2458
|
|
2392
|
-
def
|
2459
|
+
def _show_user_charge_type_http_info(self, request):
|
2393
2460
|
http_info = {
|
2394
2461
|
"method": "GET",
|
2395
|
-
"resource_path": "/v1/
|
2462
|
+
"resource_path": "/v1/domain/charge-type",
|
2396
2463
|
"request_type": request.__class__.__name__,
|
2397
|
-
"response_type": "
|
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 CodeArtsBuildAsyncClient(Client):
|
|
2433
2500
|
|
2434
2501
|
return http_info
|
2435
2502
|
|
2436
|
-
def
|
2437
|
-
r"""
|
2503
|
+
def show_user_over_package_quota_async(self, request):
|
2504
|
+
r"""当前用户所在项目所属租户的包周期每月时长是否超额
|
2438
2505
|
|
2439
|
-
|
2506
|
+
当前用户所在项目所属租户的包周期每月时长是否超额
|
2440
2507
|
|
2441
2508
|
Please refer to HUAWEI cloud API Explorer for details.
|
2442
2509
|
|
2443
2510
|
|
2444
|
-
:param request: Request instance for
|
2445
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2446
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2511
|
+
:param request: Request instance for ShowUserOverPackageQuota
|
2512
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowUserOverPackageQuotaRequest`
|
2513
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowUserOverPackageQuotaResponse`
|
2447
2514
|
"""
|
2448
|
-
http_info = self.
|
2515
|
+
http_info = self._show_user_over_package_quota_http_info(request)
|
2449
2516
|
return self._call_api(**http_info)
|
2450
2517
|
|
2451
|
-
def
|
2452
|
-
http_info = self.
|
2518
|
+
def show_user_over_package_quota_async_invoker(self, request):
|
2519
|
+
http_info = self._show_user_over_package_quota_http_info(request)
|
2453
2520
|
return AsyncInvoker(self, http_info)
|
2454
2521
|
|
2455
|
-
def
|
2522
|
+
def _show_user_over_package_quota_http_info(self, request):
|
2456
2523
|
http_info = {
|
2457
2524
|
"method": "GET",
|
2458
|
-
"resource_path": "/v1/
|
2525
|
+
"resource_path": "/v1/domain/package/quota",
|
2459
2526
|
"request_type": request.__class__.__name__,
|
2460
|
-
"response_type": "
|
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
2500
2565
|
|
2501
2566
|
return http_info
|
2502
2567
|
|
2503
|
-
def
|
2504
|
-
r"""
|
2568
|
+
def create_job_group_async(self, request):
|
2569
|
+
r"""创建构建任务分组
|
2505
2570
|
|
2506
|
-
|
2571
|
+
创建构建任务分组
|
2507
2572
|
|
2508
2573
|
Please refer to HUAWEI cloud API Explorer for details.
|
2509
2574
|
|
2510
2575
|
|
2511
|
-
:param request: Request instance for
|
2512
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2513
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2576
|
+
:param request: Request instance for CreateJobGroup
|
2577
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.CreateJobGroupRequest`
|
2578
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CreateJobGroupResponse`
|
2514
2579
|
"""
|
2515
|
-
http_info = self.
|
2580
|
+
http_info = self._create_job_group_http_info(request)
|
2516
2581
|
return self._call_api(**http_info)
|
2517
2582
|
|
2518
|
-
def
|
2519
|
-
http_info = self.
|
2583
|
+
def create_job_group_async_invoker(self, request):
|
2584
|
+
http_info = self._create_job_group_http_info(request)
|
2520
2585
|
return AsyncInvoker(self, http_info)
|
2521
2586
|
|
2522
|
-
def
|
2587
|
+
def _create_job_group_http_info(self, request):
|
2523
2588
|
http_info = {
|
2524
2589
|
"method": "POST",
|
2525
|
-
"resource_path": "/v1/job/
|
2590
|
+
"resource_path": "/v1/job/{project_id}/group/create",
|
2526
2591
|
"request_type": request.__class__.__name__,
|
2527
|
-
"response_type": "
|
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
2565
2632
|
|
2566
2633
|
return http_info
|
2567
2634
|
|
2568
|
-
def
|
2569
|
-
r"""
|
2635
|
+
def delete_group_async(self, request):
|
2636
|
+
r"""删除分组
|
2570
2637
|
|
2571
|
-
|
2638
|
+
删除分组
|
2572
2639
|
|
2573
2640
|
Please refer to HUAWEI cloud API Explorer for details.
|
2574
2641
|
|
2575
2642
|
|
2576
|
-
:param request: Request instance for
|
2577
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2578
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2643
|
+
:param request: Request instance for DeleteGroup
|
2644
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteGroupRequest`
|
2645
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteGroupResponse`
|
2579
2646
|
"""
|
2580
|
-
http_info = self.
|
2647
|
+
http_info = self._delete_group_http_info(request)
|
2581
2648
|
return self._call_api(**http_info)
|
2582
2649
|
|
2583
|
-
def
|
2584
|
-
http_info = self.
|
2650
|
+
def delete_group_async_invoker(self, request):
|
2651
|
+
http_info = self._delete_group_http_info(request)
|
2585
2652
|
return AsyncInvoker(self, http_info)
|
2586
2653
|
|
2587
|
-
def
|
2654
|
+
def _delete_group_http_info(self, request):
|
2588
2655
|
http_info = {
|
2589
2656
|
"method": "DELETE",
|
2590
|
-
"resource_path": "/v1/job/
|
2657
|
+
"resource_path": "/v1/job/{project_id}/group/delete",
|
2591
2658
|
"request_type": request.__class__.__name__,
|
2592
|
-
"response_type": "
|
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
2628
2699
|
|
2629
2700
|
return http_info
|
2630
2701
|
|
2631
|
-
def
|
2632
|
-
r"""
|
2702
|
+
def list_group_tree_async(self, request):
|
2703
|
+
r"""查询分组树
|
2633
2704
|
|
2634
|
-
|
2705
|
+
查询分组树
|
2635
2706
|
|
2636
2707
|
Please refer to HUAWEI cloud API Explorer for details.
|
2637
2708
|
|
2638
2709
|
|
2639
|
-
:param request: Request instance for
|
2640
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2641
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2710
|
+
:param request: Request instance for ListGroupTree
|
2711
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListGroupTreeRequest`
|
2712
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListGroupTreeResponse`
|
2642
2713
|
"""
|
2643
|
-
http_info = self.
|
2714
|
+
http_info = self._list_group_tree_http_info(request)
|
2644
2715
|
return self._call_api(**http_info)
|
2645
2716
|
|
2646
|
-
def
|
2647
|
-
http_info = self.
|
2717
|
+
def list_group_tree_async_invoker(self, request):
|
2718
|
+
http_info = self._list_group_tree_http_info(request)
|
2648
2719
|
return AsyncInvoker(self, http_info)
|
2649
2720
|
|
2650
|
-
def
|
2721
|
+
def _list_group_tree_http_info(self, request):
|
2651
2722
|
http_info = {
|
2652
|
-
"method": "
|
2653
|
-
"resource_path": "/v1/job/
|
2723
|
+
"method": "GET",
|
2724
|
+
"resource_path": "/v1/job/{project_id}/group/tree",
|
2654
2725
|
"request_type": request.__class__.__name__,
|
2655
|
-
"response_type": "
|
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(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,15 +2764,862 @@ class CodeArtsBuildAsyncClient(Client):
|
|
2693
2764
|
|
2694
2765
|
return http_info
|
2695
2766
|
|
2696
|
-
def
|
2697
|
-
r"""
|
2767
|
+
def move_group_async(self, request):
|
2768
|
+
r"""移动构建任务至指定分组
|
2698
2769
|
|
2699
|
-
|
2770
|
+
移动构建任务至指定分组
|
2700
2771
|
|
2701
2772
|
Please refer to HUAWEI cloud API Explorer for details.
|
2702
2773
|
|
2703
2774
|
|
2704
|
-
:param request: Request instance for
|
2775
|
+
:param request: Request instance for MoveGroup
|
2776
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.MoveGroupRequest`
|
2777
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.MoveGroupResponse`
|
2778
|
+
"""
|
2779
|
+
http_info = self._move_group_http_info(request)
|
2780
|
+
return self._call_api(**http_info)
|
2781
|
+
|
2782
|
+
def move_group_async_invoker(self, request):
|
2783
|
+
http_info = self._move_group_http_info(request)
|
2784
|
+
return AsyncInvoker(self, http_info)
|
2785
|
+
|
2786
|
+
def _move_group_http_info(self, 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_async(self, request):
|
2835
|
+
r"""交换分组顺序
|
2836
|
+
|
2837
|
+
交换分组顺序
|
2838
|
+
|
2839
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2840
|
+
|
2841
|
+
|
2842
|
+
:param request: Request instance for SwitchedPacket
|
2843
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.SwitchedPacketRequest`
|
2844
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.SwitchedPacketResponse`
|
2845
|
+
"""
|
2846
|
+
http_info = self._switched_packet_http_info(request)
|
2847
|
+
return self._call_api(**http_info)
|
2848
|
+
|
2849
|
+
def switched_packet_async_invoker(self, request):
|
2850
|
+
http_info = self._switched_packet_http_info(request)
|
2851
|
+
return AsyncInvoker(self, http_info)
|
2852
|
+
|
2853
|
+
def _switched_packet_http_info(self, 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_async(self, request):
|
2904
|
+
r"""修改分组信息
|
2905
|
+
|
2906
|
+
修改分组信息
|
2907
|
+
|
2908
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2909
|
+
|
2910
|
+
|
2911
|
+
:param request: Request instance for UpdateJobGroup
|
2912
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateJobGroupRequest`
|
2913
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateJobGroupResponse`
|
2914
|
+
"""
|
2915
|
+
http_info = self._update_job_group_http_info(request)
|
2916
|
+
return self._call_api(**http_info)
|
2917
|
+
|
2918
|
+
def update_job_group_async_invoker(self, request):
|
2919
|
+
http_info = self._update_job_group_http_info(request)
|
2920
|
+
return AsyncInvoker(self, http_info)
|
2921
|
+
|
2922
|
+
def _update_job_group_http_info(self, 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_async(self, request):
|
2971
|
+
r"""获取dockerfileTemplate
|
2972
|
+
|
2973
|
+
获取dockerfileTemplate
|
2974
|
+
|
2975
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2976
|
+
|
2977
|
+
|
2978
|
+
:param request: Request instance for ShowDockerfileTemplate
|
2979
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDockerfileTemplateRequest`
|
2980
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDockerfileTemplateResponse`
|
2981
|
+
"""
|
2982
|
+
http_info = self._show_dockerfile_template_http_info(request)
|
2983
|
+
return self._call_api(**http_info)
|
2984
|
+
|
2985
|
+
def show_dockerfile_template_async_invoker(self, request):
|
2986
|
+
http_info = self._show_dockerfile_template_http_info(request)
|
2987
|
+
return AsyncInvoker(self, http_info)
|
2988
|
+
|
2989
|
+
def _show_dockerfile_template_http_info(self, 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_async(self, request):
|
3036
|
+
r"""获取镜像模板列表
|
3037
|
+
|
3038
|
+
获取镜像模板列表
|
3039
|
+
|
3040
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3041
|
+
|
3042
|
+
|
3043
|
+
:param request: Request instance for ShowImageTemplateList
|
3044
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowImageTemplateListRequest`
|
3045
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowImageTemplateListResponse`
|
3046
|
+
"""
|
3047
|
+
http_info = self._show_image_template_list_http_info(request)
|
3048
|
+
return self._call_api(**http_info)
|
3049
|
+
|
3050
|
+
def show_image_template_list_async_invoker(self, request):
|
3051
|
+
http_info = self._show_image_template_list_http_info(request)
|
3052
|
+
return AsyncInvoker(self, http_info)
|
3053
|
+
|
3054
|
+
def _show_image_template_list_http_info(self, 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_async(self, request):
|
3099
|
+
r"""任务是否使用项目级权限
|
3100
|
+
|
3101
|
+
任务是否使用项目级权限
|
3102
|
+
|
3103
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3104
|
+
|
3105
|
+
|
3106
|
+
:param request: Request instance for ApplyProjectPermission
|
3107
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ApplyProjectPermissionRequest`
|
3108
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ApplyProjectPermissionResponse`
|
3109
|
+
"""
|
3110
|
+
http_info = self._apply_project_permission_http_info(request)
|
3111
|
+
return self._call_api(**http_info)
|
3112
|
+
|
3113
|
+
def apply_project_permission_async_invoker(self, request):
|
3114
|
+
http_info = self._apply_project_permission_http_info(request)
|
3115
|
+
return AsyncInvoker(self, http_info)
|
3116
|
+
|
3117
|
+
def _apply_project_permission_http_info(self, 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_async(self, request):
|
3164
|
+
r"""批量修改任务权限
|
3165
|
+
|
3166
|
+
批量修改任务权限
|
3167
|
+
|
3168
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3169
|
+
|
3170
|
+
|
3171
|
+
:param request: Request instance for BatchUpdateJobRolePermission
|
3172
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.BatchUpdateJobRolePermissionRequest`
|
3173
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.BatchUpdateJobRolePermissionResponse`
|
3174
|
+
"""
|
3175
|
+
http_info = self._batch_update_job_role_permission_http_info(request)
|
3176
|
+
return self._call_api(**http_info)
|
3177
|
+
|
3178
|
+
def batch_update_job_role_permission_async_invoker(self, request):
|
3179
|
+
http_info = self._batch_update_job_role_permission_http_info(request)
|
3180
|
+
return AsyncInvoker(self, http_info)
|
3181
|
+
|
3182
|
+
def _batch_update_job_role_permission_http_info(self, 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_async(self, request):
|
3229
|
+
r"""检查任务数量是否上限
|
3230
|
+
|
3231
|
+
检查任务数量是否上限
|
3232
|
+
|
3233
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3234
|
+
|
3235
|
+
|
3236
|
+
:param request: Request instance for CheckJobCountIsTopLimit
|
3237
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobCountIsTopLimitRequest`
|
3238
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobCountIsTopLimitResponse`
|
3239
|
+
"""
|
3240
|
+
http_info = self._check_job_count_is_top_limit_http_info(request)
|
3241
|
+
return self._call_api(**http_info)
|
3242
|
+
|
3243
|
+
def check_job_count_is_top_limit_async_invoker(self, request):
|
3244
|
+
http_info = self._check_job_count_is_top_limit_http_info(request)
|
3245
|
+
return AsyncInvoker(self, http_info)
|
3246
|
+
|
3247
|
+
def _check_job_count_is_top_limit_http_info(self, 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_async(self, request):
|
3292
|
+
r"""是否已开启内网安全访问
|
3293
|
+
|
3294
|
+
是否已开启内网安全访问。
|
3295
|
+
|
3296
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3297
|
+
|
3298
|
+
|
3299
|
+
:param request: Request instance for CheckJobInternal
|
3300
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobInternalRequest`
|
3301
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobInternalResponse`
|
3302
|
+
"""
|
3303
|
+
http_info = self._check_job_internal_http_info(request)
|
3304
|
+
return self._call_api(**http_info)
|
3305
|
+
|
3306
|
+
def check_job_internal_async_invoker(self, request):
|
3307
|
+
http_info = self._check_job_internal_http_info(request)
|
3308
|
+
return AsyncInvoker(self, http_info)
|
3309
|
+
|
3310
|
+
def _check_job_internal_http_info(self, 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_async(self, request):
|
3355
|
+
r"""查看项目下任务名是否存在
|
3356
|
+
|
3357
|
+
查看项目下任务名是否存在
|
3358
|
+
|
3359
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3360
|
+
|
3361
|
+
|
3362
|
+
:param request: Request instance for CheckJobNameIsExists
|
3363
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobNameIsExistsRequest`
|
3364
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobNameIsExistsResponse`
|
3365
|
+
"""
|
3366
|
+
http_info = self._check_job_name_is_exists_http_info(request)
|
3367
|
+
return self._call_api(**http_info)
|
3368
|
+
|
3369
|
+
def check_job_name_is_exists_async_invoker(self, request):
|
3370
|
+
http_info = self._check_job_name_is_exists_http_info(request)
|
3371
|
+
return AsyncInvoker(self, http_info)
|
3372
|
+
|
3373
|
+
def _check_job_name_is_exists_http_info(self, 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_async(self, request):
|
3422
|
+
r"""检查webhook地址参数
|
3423
|
+
|
3424
|
+
检查webhook地址参数
|
3425
|
+
|
3426
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3427
|
+
|
3428
|
+
|
3429
|
+
:param request: Request instance for CheckWebhookUrl
|
3430
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.CheckWebhookUrlRequest`
|
3431
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CheckWebhookUrlResponse`
|
3432
|
+
"""
|
3433
|
+
http_info = self._check_webhook_url_http_info(request)
|
3434
|
+
return self._call_api(**http_info)
|
3435
|
+
|
3436
|
+
def check_webhook_url_async_invoker(self, request):
|
3437
|
+
http_info = self._check_webhook_url_http_info(request)
|
3438
|
+
return AsyncInvoker(self, http_info)
|
3439
|
+
|
3440
|
+
def _check_webhook_url_http_info(self, 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_async(self, request):
|
3487
|
+
r"""清空回收站中的任务
|
3488
|
+
|
3489
|
+
清空回收站中的任务
|
3490
|
+
|
3491
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3492
|
+
|
3493
|
+
|
3494
|
+
:param request: Request instance for ClearRecyclingJobs
|
3495
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ClearRecyclingJobsRequest`
|
3496
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ClearRecyclingJobsResponse`
|
3497
|
+
"""
|
3498
|
+
http_info = self._clear_recycling_jobs_http_info(request)
|
3499
|
+
return self._call_api(**http_info)
|
3500
|
+
|
3501
|
+
def clear_recycling_jobs_async_invoker(self, request):
|
3502
|
+
http_info = self._clear_recycling_jobs_http_info(request)
|
3503
|
+
return AsyncInvoker(self, http_info)
|
3504
|
+
|
3505
|
+
def _clear_recycling_jobs_http_info(self, 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_async(self, request):
|
3550
|
+
r"""复制构建任务
|
3551
|
+
|
3552
|
+
复制构建任务
|
3553
|
+
|
3554
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3555
|
+
|
3556
|
+
|
3557
|
+
:param request: Request instance for CopyJob
|
3558
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.CopyJobRequest`
|
3559
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CopyJobResponse`
|
3560
|
+
"""
|
3561
|
+
http_info = self._copy_job_http_info(request)
|
3562
|
+
return self._call_api(**http_info)
|
3563
|
+
|
3564
|
+
def copy_job_async_invoker(self, request):
|
3565
|
+
http_info = self._copy_job_http_info(request)
|
3566
|
+
return AsyncInvoker(self, http_info)
|
3567
|
+
|
3568
|
+
def _copy_job_http_info(self, 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_async(self, request):
|
3615
|
+
r"""创建构建任务
|
3616
|
+
|
3617
|
+
创建构建任务
|
3618
|
+
|
3619
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3620
|
+
|
3621
|
+
|
3622
|
+
:param request: Request instance for CreateNewJob
|
2705
3623
|
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.CreateNewJobRequest`
|
2706
3624
|
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CreateNewJobResponse`
|
2707
3625
|
"""
|
@@ -3087,6 +4005,75 @@ class CodeArtsBuildAsyncClient(Client):
|
|
3087
4005
|
|
3088
4006
|
return http_info
|
3089
4007
|
|
4008
|
+
def list_end_points_async(self, request):
|
4009
|
+
r"""查询私有依赖仓库列表
|
4010
|
+
|
4011
|
+
查询私有依赖仓库列表
|
4012
|
+
|
4013
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4014
|
+
|
4015
|
+
|
4016
|
+
:param request: Request instance for ListEndPoints
|
4017
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListEndPointsRequest`
|
4018
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListEndPointsResponse`
|
4019
|
+
"""
|
4020
|
+
http_info = self._list_end_points_http_info(request)
|
4021
|
+
return self._call_api(**http_info)
|
4022
|
+
|
4023
|
+
def list_end_points_async_invoker(self, request):
|
4024
|
+
http_info = self._list_end_points_http_info(request)
|
4025
|
+
return AsyncInvoker(self, http_info)
|
4026
|
+
|
4027
|
+
def _list_end_points_http_info(self, 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_async(self, request):
|
3091
4078
|
r"""查看用户全部的构建任务列表
|
3092
4079
|
|
@@ -3515,6 +4502,73 @@ class CodeArtsBuildAsyncClient(Client):
|
|
3515
4502
|
|
3516
4503
|
return http_info
|
3517
4504
|
|
4505
|
+
def show_build_details_async(self, request):
|
4506
|
+
r"""根据持续构建名称,获取任务构建状态、百分比、剩余时间
|
4507
|
+
|
4508
|
+
根据持续构建名称,获取任务构建状态、百分比、剩余时间
|
4509
|
+
|
4510
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4511
|
+
|
4512
|
+
|
4513
|
+
:param request: Request instance for ShowBuildDetails
|
4514
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildDetailsRequest`
|
4515
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildDetailsResponse`
|
4516
|
+
"""
|
4517
|
+
http_info = self._show_build_details_http_info(request)
|
4518
|
+
return self._call_api(**http_info)
|
4519
|
+
|
4520
|
+
def show_build_details_async_invoker(self, request):
|
4521
|
+
http_info = self._show_build_details_http_info(request)
|
4522
|
+
return AsyncInvoker(self, http_info)
|
4523
|
+
|
4524
|
+
def _show_build_details_http_info(self, 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_async(self, request):
|
3519
4573
|
r"""编辑页获取参数类型的接口
|
3520
4574
|
|
@@ -3714,23 +4768,90 @@ class CodeArtsBuildAsyncClient(Client):
|
|
3714
4768
|
Please refer to HUAWEI cloud API Explorer for details.
|
3715
4769
|
|
3716
4770
|
|
3717
|
-
:param request: Request instance for ShowDefaultProjectPermission
|
3718
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultProjectPermissionRequest`
|
3719
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultProjectPermissionResponse`
|
4771
|
+
:param request: Request instance for ShowDefaultProjectPermission
|
4772
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultProjectPermissionRequest`
|
4773
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultProjectPermissionResponse`
|
4774
|
+
"""
|
4775
|
+
http_info = self._show_default_project_permission_http_info(request)
|
4776
|
+
return self._call_api(**http_info)
|
4777
|
+
|
4778
|
+
def show_default_project_permission_async_invoker(self, request):
|
4779
|
+
http_info = self._show_default_project_permission_http_info(request)
|
4780
|
+
return AsyncInvoker(self, http_info)
|
4781
|
+
|
4782
|
+
def _show_default_project_permission_http_info(self, 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_async(self, request):
|
4831
|
+
r"""查询任务是否已禁用
|
4832
|
+
|
4833
|
+
查询任务是否已禁用
|
4834
|
+
|
4835
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4836
|
+
|
4837
|
+
|
4838
|
+
:param request: Request instance for ShowDisable
|
4839
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDisableRequest`
|
4840
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDisableResponse`
|
3720
4841
|
"""
|
3721
|
-
http_info = self.
|
4842
|
+
http_info = self._show_disable_http_info(request)
|
3722
4843
|
return self._call_api(**http_info)
|
3723
4844
|
|
3724
|
-
def
|
3725
|
-
http_info = self.
|
4845
|
+
def show_disable_async_invoker(self, request):
|
4846
|
+
http_info = self._show_disable_http_info(request)
|
3726
4847
|
return AsyncInvoker(self, http_info)
|
3727
4848
|
|
3728
|
-
def
|
4849
|
+
def _show_disable_http_info(self, request):
|
3729
4850
|
http_info = {
|
3730
4851
|
"method": "GET",
|
3731
|
-
"resource_path": "/v1/job/
|
4852
|
+
"resource_path": "/v1/job/{job_id}/check/disable",
|
3732
4853
|
"request_type": request.__class__.__name__,
|
3733
|
-
"response_type": "
|
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
3773
4892
|
|
3774
4893
|
return http_info
|
3775
4894
|
|
3776
|
-
def
|
3777
|
-
r"""
|
4895
|
+
def show_domains_statuses_async(self, request):
|
4896
|
+
r"""查询跨租户场景下其他租户的状态
|
3778
4897
|
|
3779
|
-
|
4898
|
+
查询跨租户场景下其他租户的状态
|
3780
4899
|
|
3781
4900
|
Please refer to HUAWEI cloud API Explorer for details.
|
3782
4901
|
|
3783
4902
|
|
3784
|
-
:param request: Request instance for
|
3785
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3786
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4903
|
+
:param request: Request instance for ShowDomainsStatuses
|
4904
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDomainsStatusesRequest`
|
4905
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDomainsStatusesResponse`
|
3787
4906
|
"""
|
3788
|
-
http_info = self.
|
4907
|
+
http_info = self._show_domains_statuses_http_info(request)
|
3789
4908
|
return self._call_api(**http_info)
|
3790
4909
|
|
3791
|
-
def
|
3792
|
-
http_info = self.
|
4910
|
+
def show_domains_statuses_async_invoker(self, request):
|
4911
|
+
http_info = self._show_domains_statuses_http_info(request)
|
3793
4912
|
return AsyncInvoker(self, http_info)
|
3794
4913
|
|
3795
|
-
def
|
4914
|
+
def _show_domains_statuses_http_info(self, request):
|
3796
4915
|
http_info = {
|
3797
|
-
"method": "
|
3798
|
-
"resource_path": "/v1/
|
4916
|
+
"method": "POST",
|
4917
|
+
"resource_path": "/v1/domain/domains-statuses",
|
3799
4918
|
"request_type": request.__class__.__name__,
|
3800
|
-
"response_type": "
|
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
4632
5751
|
|
4633
5752
|
return http_info
|
4634
5753
|
|
5754
|
+
def update_new_notice_new_async(self, request):
|
5755
|
+
r"""更新通知配置
|
5756
|
+
|
5757
|
+
更新通知配置。
|
5758
|
+
|
5759
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
5760
|
+
|
5761
|
+
|
5762
|
+
:param request: Request instance for UpdateNewNoticeNew
|
5763
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateNewNoticeNewRequest`
|
5764
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateNewNoticeNewResponse`
|
5765
|
+
"""
|
5766
|
+
http_info = self._update_new_notice_new_http_info(request)
|
5767
|
+
return self._call_api(**http_info)
|
5768
|
+
|
5769
|
+
def update_new_notice_new_async_invoker(self, request):
|
5770
|
+
http_info = self._update_new_notice_new_http_info(request)
|
5771
|
+
return AsyncInvoker(self, http_info)
|
5772
|
+
|
5773
|
+
def _update_new_notice_new_http_info(self, 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_async(self, request):
|
4636
5822
|
r"""添加文件权限
|
4637
5823
|
|
@@ -6726,6 +7912,71 @@ class CodeArtsBuildAsyncClient(Client):
|
|
6726
7912
|
|
6727
7913
|
return http_info
|
6728
7914
|
|
7915
|
+
def add_favourite_custom_template_async(self, request):
|
7916
|
+
r"""收藏自定义模板
|
7917
|
+
|
7918
|
+
收藏自定义模板
|
7919
|
+
|
7920
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
7921
|
+
|
7922
|
+
|
7923
|
+
:param request: Request instance for AddFavouriteCustomTemplate
|
7924
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.AddFavouriteCustomTemplateRequest`
|
7925
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.AddFavouriteCustomTemplateResponse`
|
7926
|
+
"""
|
7927
|
+
http_info = self._add_favourite_custom_template_http_info(request)
|
7928
|
+
return self._call_api(**http_info)
|
7929
|
+
|
7930
|
+
def add_favourite_custom_template_async_invoker(self, request):
|
7931
|
+
http_info = self._add_favourite_custom_template_http_info(request)
|
7932
|
+
return AsyncInvoker(self, http_info)
|
7933
|
+
|
7934
|
+
def _add_favourite_custom_template_http_info(self, 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_async(self, request):
|
6730
7981
|
r"""创建构建模板
|
6731
7982
|
|
@@ -7063,6 +8314,71 @@ class CodeArtsBuildAsyncClient(Client):
|
|
7063
8314
|
|
7064
8315
|
return http_info
|
7065
8316
|
|
8317
|
+
def remover_favourite_custom_template_async(self, request):
|
8318
|
+
r"""取消收藏自定义模板
|
8319
|
+
|
8320
|
+
取消收藏自定义模板
|
8321
|
+
|
8322
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
8323
|
+
|
8324
|
+
|
8325
|
+
:param request: Request instance for RemoverFavouriteCustomTemplate
|
8326
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.RemoverFavouriteCustomTemplateRequest`
|
8327
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.RemoverFavouriteCustomTemplateResponse`
|
8328
|
+
"""
|
8329
|
+
http_info = self._remover_favourite_custom_template_http_info(request)
|
8330
|
+
return self._call_api(**http_info)
|
8331
|
+
|
8332
|
+
def remover_favourite_custom_template_async_invoker(self, request):
|
8333
|
+
http_info = self._remover_favourite_custom_template_http_info(request)
|
8334
|
+
return AsyncInvoker(self, http_info)
|
8335
|
+
|
8336
|
+
def _remover_favourite_custom_template_http_info(self, 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_async(self, request):
|
7067
8383
|
r"""保存模板使用记录
|
7068
8384
|
|
@@ -7128,6 +8444,71 @@ class CodeArtsBuildAsyncClient(Client):
|
|
7128
8444
|
|
7129
8445
|
return http_info
|
7130
8446
|
|
8447
|
+
def show_template_async(self, request):
|
8448
|
+
r"""根据模板uuid查询特定模板
|
8449
|
+
|
8450
|
+
根据模板uuid查询特定模板
|
8451
|
+
|
8452
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
8453
|
+
|
8454
|
+
|
8455
|
+
:param request: Request instance for ShowTemplate
|
8456
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowTemplateRequest`
|
8457
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowTemplateResponse`
|
8458
|
+
"""
|
8459
|
+
http_info = self._show_template_http_info(request)
|
8460
|
+
return self._call_api(**http_info)
|
8461
|
+
|
8462
|
+
def show_template_async_invoker(self, request):
|
8463
|
+
http_info = self._show_template_http_info(request)
|
8464
|
+
return AsyncInvoker(self, http_info)
|
8465
|
+
|
8466
|
+
def _show_template_http_info(self, 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_async(self, request):
|
7132
8513
|
r"""获取代码化构建默认模板
|
7133
8514
|
|