huaweicloudsdkcodeartsbuild 3.1.152__py2.py3-none-any.whl → 3.1.154__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkcodeartsbuild/v3/__init__.py +60 -1
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1466 -89
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1466 -89
- huaweicloudsdkcodeartsbuild/v3/model/__init__.py +60 -1
- huaweicloudsdkcodeartsbuild/v3/model/brief_record_items.py +550 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_webhook_url_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_webhook_url_request_body.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_webhook_url_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/clear_recycling_jobs_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/clear_recycling_jobs_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/copy_build_job_request_body.py +429 -0
- huaweicloudsdkcodeartsbuild/v3/model/copy_job_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/copy_job_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/create_build_job_request_body.py +115 -3
- huaweicloudsdkcodeartsbuild/v3/model/create_build_job_scm.py +90 -3
- huaweicloudsdkcodeartsbuild/v3/model/create_build_timeout.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/create_new_job_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/create_new_job_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/create_template_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/create_template_response.py +141 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_build_job_response.py +4 -4
- huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_permission_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_permission_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_recycling_jobs_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_recycling_jobs_response.py +116 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_template_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_template_response.py +116 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_the_job_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_the_job_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/{delete_build_job_response_body_result.py → delete_the_job_response_body_result.py} +11 -11
- huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_request.py +139 -0
- huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_request_body.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_response.py +116 -0
- huaweicloudsdkcodeartsbuild/v3/model/execute_job_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/execute_job_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/job.py +264 -3
- huaweicloudsdkcodeartsbuild/v3/model/jobs_request_body.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_request.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_response_body_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_request_body.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/restore_recycling_jobs_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/restore_recycling_jobs_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/save_template_used_info_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/save_template_used_info_request_body.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/save_template_used_info_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_request_body.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_permission_result.py +434 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_project_job_permission_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_project_job_permission_response.py +141 -0
- huaweicloudsdkcodeartsbuild/v3/model/status_success_result_with_uuid_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/trigger.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_keystore_request.py +139 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_keystore_request_body.py +198 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_keystore_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_new_job_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_new_job_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/upload_keystore_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/upload_keystore_request_body.py +171 -0
- huaweicloudsdkcodeartsbuild/v3/model/upload_keystore_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/upload_keystore_result.py +115 -0
- {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.154.dist-info}/METADATA +2 -2
- {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.154.dist-info}/RECORD +73 -14
- {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.154.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.154.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.154.dist-info}/top_level.txt +0 -0
@@ -2500,6 +2500,526 @@ class CodeArtsBuildAsyncClient(Client):
|
|
2500
2500
|
|
2501
2501
|
return http_info
|
2502
2502
|
|
2503
|
+
def check_webhook_url_async(self, request):
|
2504
|
+
r"""检查webhook地址参数
|
2505
|
+
|
2506
|
+
检查webhook地址参数
|
2507
|
+
|
2508
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2509
|
+
|
2510
|
+
|
2511
|
+
:param request: Request instance for CheckWebhookUrl
|
2512
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.CheckWebhookUrlRequest`
|
2513
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CheckWebhookUrlResponse`
|
2514
|
+
"""
|
2515
|
+
http_info = self._check_webhook_url_http_info(request)
|
2516
|
+
return self._call_api(**http_info)
|
2517
|
+
|
2518
|
+
def check_webhook_url_async_invoker(self, request):
|
2519
|
+
http_info = self._check_webhook_url_http_info(request)
|
2520
|
+
return AsyncInvoker(self, http_info)
|
2521
|
+
|
2522
|
+
def _check_webhook_url_http_info(self, request):
|
2523
|
+
http_info = {
|
2524
|
+
"method": "POST",
|
2525
|
+
"resource_path": "/v1/job/check/webhook-url",
|
2526
|
+
"request_type": request.__class__.__name__,
|
2527
|
+
"response_type": "CheckWebhookUrlResponse"
|
2528
|
+
}
|
2529
|
+
|
2530
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2531
|
+
|
2532
|
+
cname = None
|
2533
|
+
|
2534
|
+
collection_formats = {}
|
2535
|
+
|
2536
|
+
path_params = {}
|
2537
|
+
|
2538
|
+
query_params = []
|
2539
|
+
|
2540
|
+
header_params = {}
|
2541
|
+
|
2542
|
+
form_params = {}
|
2543
|
+
|
2544
|
+
body = None
|
2545
|
+
if 'body' in local_var_params:
|
2546
|
+
body = local_var_params['body']
|
2547
|
+
if isinstance(request, SdkStreamRequest):
|
2548
|
+
body = request.get_file_stream()
|
2549
|
+
|
2550
|
+
response_headers = []
|
2551
|
+
|
2552
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2553
|
+
['application/json'])
|
2554
|
+
|
2555
|
+
auth_settings = ['apig-auth-iam']
|
2556
|
+
|
2557
|
+
http_info["cname"] = cname
|
2558
|
+
http_info["collection_formats"] = collection_formats
|
2559
|
+
http_info["path_params"] = path_params
|
2560
|
+
http_info["query_params"] = query_params
|
2561
|
+
http_info["header_params"] = header_params
|
2562
|
+
http_info["post_params"] = form_params
|
2563
|
+
http_info["body"] = body
|
2564
|
+
http_info["response_headers"] = response_headers
|
2565
|
+
|
2566
|
+
return http_info
|
2567
|
+
|
2568
|
+
def clear_recycling_jobs_async(self, request):
|
2569
|
+
r"""清空回收站中的任务
|
2570
|
+
|
2571
|
+
清空回收站中的任务
|
2572
|
+
|
2573
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2574
|
+
|
2575
|
+
|
2576
|
+
:param request: Request instance for ClearRecyclingJobs
|
2577
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ClearRecyclingJobsRequest`
|
2578
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ClearRecyclingJobsResponse`
|
2579
|
+
"""
|
2580
|
+
http_info = self._clear_recycling_jobs_http_info(request)
|
2581
|
+
return self._call_api(**http_info)
|
2582
|
+
|
2583
|
+
def clear_recycling_jobs_async_invoker(self, request):
|
2584
|
+
http_info = self._clear_recycling_jobs_http_info(request)
|
2585
|
+
return AsyncInvoker(self, http_info)
|
2586
|
+
|
2587
|
+
def _clear_recycling_jobs_http_info(self, request):
|
2588
|
+
http_info = {
|
2589
|
+
"method": "DELETE",
|
2590
|
+
"resource_path": "/v1/job/recycling-empty",
|
2591
|
+
"request_type": request.__class__.__name__,
|
2592
|
+
"response_type": "ClearRecyclingJobsResponse"
|
2593
|
+
}
|
2594
|
+
|
2595
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2596
|
+
|
2597
|
+
cname = None
|
2598
|
+
|
2599
|
+
collection_formats = {}
|
2600
|
+
|
2601
|
+
path_params = {}
|
2602
|
+
|
2603
|
+
query_params = []
|
2604
|
+
|
2605
|
+
header_params = {}
|
2606
|
+
|
2607
|
+
form_params = {}
|
2608
|
+
|
2609
|
+
body = None
|
2610
|
+
if isinstance(request, SdkStreamRequest):
|
2611
|
+
body = request.get_file_stream()
|
2612
|
+
|
2613
|
+
response_headers = []
|
2614
|
+
|
2615
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2616
|
+
['application/json'])
|
2617
|
+
|
2618
|
+
auth_settings = ['apig-auth-iam']
|
2619
|
+
|
2620
|
+
http_info["cname"] = cname
|
2621
|
+
http_info["collection_formats"] = collection_formats
|
2622
|
+
http_info["path_params"] = path_params
|
2623
|
+
http_info["query_params"] = query_params
|
2624
|
+
http_info["header_params"] = header_params
|
2625
|
+
http_info["post_params"] = form_params
|
2626
|
+
http_info["body"] = body
|
2627
|
+
http_info["response_headers"] = response_headers
|
2628
|
+
|
2629
|
+
return http_info
|
2630
|
+
|
2631
|
+
def copy_job_async(self, request):
|
2632
|
+
r"""复制构建任务
|
2633
|
+
|
2634
|
+
复制构建任务
|
2635
|
+
|
2636
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2637
|
+
|
2638
|
+
|
2639
|
+
:param request: Request instance for CopyJob
|
2640
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.CopyJobRequest`
|
2641
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CopyJobResponse`
|
2642
|
+
"""
|
2643
|
+
http_info = self._copy_job_http_info(request)
|
2644
|
+
return self._call_api(**http_info)
|
2645
|
+
|
2646
|
+
def copy_job_async_invoker(self, request):
|
2647
|
+
http_info = self._copy_job_http_info(request)
|
2648
|
+
return AsyncInvoker(self, http_info)
|
2649
|
+
|
2650
|
+
def _copy_job_http_info(self, request):
|
2651
|
+
http_info = {
|
2652
|
+
"method": "POST",
|
2653
|
+
"resource_path": "/v1/job/copy",
|
2654
|
+
"request_type": request.__class__.__name__,
|
2655
|
+
"response_type": "CopyJobResponse"
|
2656
|
+
}
|
2657
|
+
|
2658
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2659
|
+
|
2660
|
+
cname = None
|
2661
|
+
|
2662
|
+
collection_formats = {}
|
2663
|
+
|
2664
|
+
path_params = {}
|
2665
|
+
|
2666
|
+
query_params = []
|
2667
|
+
|
2668
|
+
header_params = {}
|
2669
|
+
|
2670
|
+
form_params = {}
|
2671
|
+
|
2672
|
+
body = None
|
2673
|
+
if 'body' in local_var_params:
|
2674
|
+
body = local_var_params['body']
|
2675
|
+
if isinstance(request, SdkStreamRequest):
|
2676
|
+
body = request.get_file_stream()
|
2677
|
+
|
2678
|
+
response_headers = []
|
2679
|
+
|
2680
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2681
|
+
['application/json'])
|
2682
|
+
|
2683
|
+
auth_settings = ['apig-auth-iam']
|
2684
|
+
|
2685
|
+
http_info["cname"] = cname
|
2686
|
+
http_info["collection_formats"] = collection_formats
|
2687
|
+
http_info["path_params"] = path_params
|
2688
|
+
http_info["query_params"] = query_params
|
2689
|
+
http_info["header_params"] = header_params
|
2690
|
+
http_info["post_params"] = form_params
|
2691
|
+
http_info["body"] = body
|
2692
|
+
http_info["response_headers"] = response_headers
|
2693
|
+
|
2694
|
+
return http_info
|
2695
|
+
|
2696
|
+
def create_new_job_async(self, request):
|
2697
|
+
r"""创建构建任务
|
2698
|
+
|
2699
|
+
创建构建任务
|
2700
|
+
|
2701
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2702
|
+
|
2703
|
+
|
2704
|
+
:param request: Request instance for CreateNewJob
|
2705
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.CreateNewJobRequest`
|
2706
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CreateNewJobResponse`
|
2707
|
+
"""
|
2708
|
+
http_info = self._create_new_job_http_info(request)
|
2709
|
+
return self._call_api(**http_info)
|
2710
|
+
|
2711
|
+
def create_new_job_async_invoker(self, request):
|
2712
|
+
http_info = self._create_new_job_http_info(request)
|
2713
|
+
return AsyncInvoker(self, http_info)
|
2714
|
+
|
2715
|
+
def _create_new_job_http_info(self, request):
|
2716
|
+
http_info = {
|
2717
|
+
"method": "POST",
|
2718
|
+
"resource_path": "/v1/job/create",
|
2719
|
+
"request_type": request.__class__.__name__,
|
2720
|
+
"response_type": "CreateNewJobResponse"
|
2721
|
+
}
|
2722
|
+
|
2723
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2724
|
+
|
2725
|
+
cname = None
|
2726
|
+
|
2727
|
+
collection_formats = {}
|
2728
|
+
|
2729
|
+
path_params = {}
|
2730
|
+
|
2731
|
+
query_params = []
|
2732
|
+
|
2733
|
+
header_params = {}
|
2734
|
+
|
2735
|
+
form_params = {}
|
2736
|
+
|
2737
|
+
body = None
|
2738
|
+
if 'body' in local_var_params:
|
2739
|
+
body = local_var_params['body']
|
2740
|
+
if isinstance(request, SdkStreamRequest):
|
2741
|
+
body = request.get_file_stream()
|
2742
|
+
|
2743
|
+
response_headers = []
|
2744
|
+
|
2745
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2746
|
+
['application/json'])
|
2747
|
+
|
2748
|
+
auth_settings = ['apig-auth-iam']
|
2749
|
+
|
2750
|
+
http_info["cname"] = cname
|
2751
|
+
http_info["collection_formats"] = collection_formats
|
2752
|
+
http_info["path_params"] = path_params
|
2753
|
+
http_info["query_params"] = query_params
|
2754
|
+
http_info["header_params"] = header_params
|
2755
|
+
http_info["post_params"] = form_params
|
2756
|
+
http_info["body"] = body
|
2757
|
+
http_info["response_headers"] = response_headers
|
2758
|
+
|
2759
|
+
return http_info
|
2760
|
+
|
2761
|
+
def delete_recycling_jobs_async(self, request):
|
2762
|
+
r"""删除回收站中的任务
|
2763
|
+
|
2764
|
+
删除回收站中的任务
|
2765
|
+
|
2766
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2767
|
+
|
2768
|
+
|
2769
|
+
:param request: Request instance for DeleteRecyclingJobs
|
2770
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteRecyclingJobsRequest`
|
2771
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteRecyclingJobsResponse`
|
2772
|
+
"""
|
2773
|
+
http_info = self._delete_recycling_jobs_http_info(request)
|
2774
|
+
return self._call_api(**http_info)
|
2775
|
+
|
2776
|
+
def delete_recycling_jobs_async_invoker(self, request):
|
2777
|
+
http_info = self._delete_recycling_jobs_http_info(request)
|
2778
|
+
return AsyncInvoker(self, http_info)
|
2779
|
+
|
2780
|
+
def _delete_recycling_jobs_http_info(self, request):
|
2781
|
+
http_info = {
|
2782
|
+
"method": "DELETE",
|
2783
|
+
"resource_path": "/v1/job/recycling-deletion",
|
2784
|
+
"request_type": request.__class__.__name__,
|
2785
|
+
"response_type": "DeleteRecyclingJobsResponse"
|
2786
|
+
}
|
2787
|
+
|
2788
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2789
|
+
|
2790
|
+
cname = None
|
2791
|
+
|
2792
|
+
collection_formats = {}
|
2793
|
+
|
2794
|
+
path_params = {}
|
2795
|
+
|
2796
|
+
query_params = []
|
2797
|
+
|
2798
|
+
header_params = {}
|
2799
|
+
|
2800
|
+
form_params = {}
|
2801
|
+
|
2802
|
+
body = None
|
2803
|
+
if 'body' in local_var_params:
|
2804
|
+
body = local_var_params['body']
|
2805
|
+
if isinstance(request, SdkStreamRequest):
|
2806
|
+
body = request.get_file_stream()
|
2807
|
+
|
2808
|
+
response_headers = []
|
2809
|
+
|
2810
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2811
|
+
['application/json'])
|
2812
|
+
|
2813
|
+
auth_settings = ['apig-auth-iam']
|
2814
|
+
|
2815
|
+
http_info["cname"] = cname
|
2816
|
+
http_info["collection_formats"] = collection_formats
|
2817
|
+
http_info["path_params"] = path_params
|
2818
|
+
http_info["query_params"] = query_params
|
2819
|
+
http_info["header_params"] = header_params
|
2820
|
+
http_info["post_params"] = form_params
|
2821
|
+
http_info["body"] = body
|
2822
|
+
http_info["response_headers"] = response_headers
|
2823
|
+
|
2824
|
+
return http_info
|
2825
|
+
|
2826
|
+
def delete_the_job_async(self, request):
|
2827
|
+
r"""删除任务
|
2828
|
+
|
2829
|
+
删除任务
|
2830
|
+
|
2831
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2832
|
+
|
2833
|
+
|
2834
|
+
:param request: Request instance for DeleteTheJob
|
2835
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteTheJobRequest`
|
2836
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteTheJobResponse`
|
2837
|
+
"""
|
2838
|
+
http_info = self._delete_the_job_http_info(request)
|
2839
|
+
return self._call_api(**http_info)
|
2840
|
+
|
2841
|
+
def delete_the_job_async_invoker(self, request):
|
2842
|
+
http_info = self._delete_the_job_http_info(request)
|
2843
|
+
return AsyncInvoker(self, http_info)
|
2844
|
+
|
2845
|
+
def _delete_the_job_http_info(self, request):
|
2846
|
+
http_info = {
|
2847
|
+
"method": "DELETE",
|
2848
|
+
"resource_path": "/v1/job/{job_id}/delete",
|
2849
|
+
"request_type": request.__class__.__name__,
|
2850
|
+
"response_type": "DeleteTheJobResponse"
|
2851
|
+
}
|
2852
|
+
|
2853
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2854
|
+
|
2855
|
+
cname = None
|
2856
|
+
|
2857
|
+
collection_formats = {}
|
2858
|
+
|
2859
|
+
path_params = {}
|
2860
|
+
if 'job_id' in local_var_params:
|
2861
|
+
path_params['job_id'] = local_var_params['job_id']
|
2862
|
+
|
2863
|
+
query_params = []
|
2864
|
+
|
2865
|
+
header_params = {}
|
2866
|
+
|
2867
|
+
form_params = {}
|
2868
|
+
|
2869
|
+
body = None
|
2870
|
+
if isinstance(request, SdkStreamRequest):
|
2871
|
+
body = request.get_file_stream()
|
2872
|
+
|
2873
|
+
response_headers = []
|
2874
|
+
|
2875
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2876
|
+
['application/json'])
|
2877
|
+
|
2878
|
+
auth_settings = ['apig-auth-iam']
|
2879
|
+
|
2880
|
+
http_info["cname"] = cname
|
2881
|
+
http_info["collection_formats"] = collection_formats
|
2882
|
+
http_info["path_params"] = path_params
|
2883
|
+
http_info["query_params"] = query_params
|
2884
|
+
http_info["header_params"] = header_params
|
2885
|
+
http_info["post_params"] = form_params
|
2886
|
+
http_info["body"] = body
|
2887
|
+
http_info["response_headers"] = response_headers
|
2888
|
+
|
2889
|
+
return http_info
|
2890
|
+
|
2891
|
+
def disable_the_job_async(self, request):
|
2892
|
+
r"""禁用任务
|
2893
|
+
|
2894
|
+
禁用任务
|
2895
|
+
|
2896
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2897
|
+
|
2898
|
+
|
2899
|
+
:param request: Request instance for DisableTheJob
|
2900
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.DisableTheJobRequest`
|
2901
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DisableTheJobResponse`
|
2902
|
+
"""
|
2903
|
+
http_info = self._disable_the_job_http_info(request)
|
2904
|
+
return self._call_api(**http_info)
|
2905
|
+
|
2906
|
+
def disable_the_job_async_invoker(self, request):
|
2907
|
+
http_info = self._disable_the_job_http_info(request)
|
2908
|
+
return AsyncInvoker(self, http_info)
|
2909
|
+
|
2910
|
+
def _disable_the_job_http_info(self, request):
|
2911
|
+
http_info = {
|
2912
|
+
"method": "POST",
|
2913
|
+
"resource_path": "/v1/job/{job_id}/disable",
|
2914
|
+
"request_type": request.__class__.__name__,
|
2915
|
+
"response_type": "DisableTheJobResponse"
|
2916
|
+
}
|
2917
|
+
|
2918
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2919
|
+
|
2920
|
+
cname = None
|
2921
|
+
|
2922
|
+
collection_formats = {}
|
2923
|
+
|
2924
|
+
path_params = {}
|
2925
|
+
if 'job_id' in local_var_params:
|
2926
|
+
path_params['job_id'] = local_var_params['job_id']
|
2927
|
+
|
2928
|
+
query_params = []
|
2929
|
+
|
2930
|
+
header_params = {}
|
2931
|
+
|
2932
|
+
form_params = {}
|
2933
|
+
|
2934
|
+
body = None
|
2935
|
+
if 'body' in local_var_params:
|
2936
|
+
body = local_var_params['body']
|
2937
|
+
if isinstance(request, SdkStreamRequest):
|
2938
|
+
body = request.get_file_stream()
|
2939
|
+
|
2940
|
+
response_headers = []
|
2941
|
+
|
2942
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2943
|
+
['application/json'])
|
2944
|
+
|
2945
|
+
auth_settings = ['apig-auth-iam']
|
2946
|
+
|
2947
|
+
http_info["cname"] = cname
|
2948
|
+
http_info["collection_formats"] = collection_formats
|
2949
|
+
http_info["path_params"] = path_params
|
2950
|
+
http_info["query_params"] = query_params
|
2951
|
+
http_info["header_params"] = header_params
|
2952
|
+
http_info["post_params"] = form_params
|
2953
|
+
http_info["body"] = body
|
2954
|
+
http_info["response_headers"] = response_headers
|
2955
|
+
|
2956
|
+
return http_info
|
2957
|
+
|
2958
|
+
def execute_job_async(self, request):
|
2959
|
+
r"""执行构建
|
2960
|
+
|
2961
|
+
执行构建任务
|
2962
|
+
|
2963
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2964
|
+
|
2965
|
+
|
2966
|
+
:param request: Request instance for ExecuteJob
|
2967
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ExecuteJobRequest`
|
2968
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ExecuteJobResponse`
|
2969
|
+
"""
|
2970
|
+
http_info = self._execute_job_http_info(request)
|
2971
|
+
return self._call_api(**http_info)
|
2972
|
+
|
2973
|
+
def execute_job_async_invoker(self, request):
|
2974
|
+
http_info = self._execute_job_http_info(request)
|
2975
|
+
return AsyncInvoker(self, http_info)
|
2976
|
+
|
2977
|
+
def _execute_job_http_info(self, request):
|
2978
|
+
http_info = {
|
2979
|
+
"method": "POST",
|
2980
|
+
"resource_path": "/v1/job/execute",
|
2981
|
+
"request_type": request.__class__.__name__,
|
2982
|
+
"response_type": "ExecuteJobResponse"
|
2983
|
+
}
|
2984
|
+
|
2985
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2986
|
+
|
2987
|
+
cname = None
|
2988
|
+
|
2989
|
+
collection_formats = {}
|
2990
|
+
|
2991
|
+
path_params = {}
|
2992
|
+
|
2993
|
+
query_params = []
|
2994
|
+
|
2995
|
+
header_params = {}
|
2996
|
+
|
2997
|
+
form_params = {}
|
2998
|
+
|
2999
|
+
body = None
|
3000
|
+
if 'body' in local_var_params:
|
3001
|
+
body = local_var_params['body']
|
3002
|
+
if isinstance(request, SdkStreamRequest):
|
3003
|
+
body = request.get_file_stream()
|
3004
|
+
|
3005
|
+
response_headers = []
|
3006
|
+
|
3007
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3008
|
+
['application/json'])
|
3009
|
+
|
3010
|
+
auth_settings = ['apig-auth-iam']
|
3011
|
+
|
3012
|
+
http_info["cname"] = cname
|
3013
|
+
http_info["collection_formats"] = collection_formats
|
3014
|
+
http_info["path_params"] = path_params
|
3015
|
+
http_info["query_params"] = query_params
|
3016
|
+
http_info["header_params"] = header_params
|
3017
|
+
http_info["post_params"] = form_params
|
3018
|
+
http_info["body"] = body
|
3019
|
+
http_info["response_headers"] = response_headers
|
3020
|
+
|
3021
|
+
return http_info
|
3022
|
+
|
2503
3023
|
def list_build_parameter_async(self, request):
|
2504
3024
|
r"""详情页获取构建参数
|
2505
3025
|
|
@@ -2820,16 +3340,146 @@ class CodeArtsBuildAsyncClient(Client):
|
|
2820
3340
|
path_params['job_id'] = local_var_params['job_id']
|
2821
3341
|
|
2822
3342
|
query_params = []
|
2823
|
-
if 'page_no' in local_var_params:
|
2824
|
-
query_params.append(('page_no', local_var_params['page_no']))
|
2825
|
-
if 'page_size' in local_var_params:
|
2826
|
-
query_params.append(('page_size', local_var_params['page_size']))
|
3343
|
+
if 'page_no' in local_var_params:
|
3344
|
+
query_params.append(('page_no', local_var_params['page_no']))
|
3345
|
+
if 'page_size' in local_var_params:
|
3346
|
+
query_params.append(('page_size', local_var_params['page_size']))
|
3347
|
+
|
3348
|
+
header_params = {}
|
3349
|
+
|
3350
|
+
form_params = {}
|
3351
|
+
|
3352
|
+
body = None
|
3353
|
+
if isinstance(request, SdkStreamRequest):
|
3354
|
+
body = request.get_file_stream()
|
3355
|
+
|
3356
|
+
response_headers = []
|
3357
|
+
|
3358
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3359
|
+
['application/json'])
|
3360
|
+
|
3361
|
+
auth_settings = ['apig-auth-iam']
|
3362
|
+
|
3363
|
+
http_info["cname"] = cname
|
3364
|
+
http_info["collection_formats"] = collection_formats
|
3365
|
+
http_info["path_params"] = path_params
|
3366
|
+
http_info["query_params"] = query_params
|
3367
|
+
http_info["header_params"] = header_params
|
3368
|
+
http_info["post_params"] = form_params
|
3369
|
+
http_info["body"] = body
|
3370
|
+
http_info["response_headers"] = response_headers
|
3371
|
+
|
3372
|
+
return http_info
|
3373
|
+
|
3374
|
+
def restore_recycling_jobs_async(self, request):
|
3375
|
+
r"""恢复回收站中的任务
|
3376
|
+
|
3377
|
+
恢复回收站中的任务
|
3378
|
+
|
3379
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3380
|
+
|
3381
|
+
|
3382
|
+
:param request: Request instance for RestoreRecyclingJobs
|
3383
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.RestoreRecyclingJobsRequest`
|
3384
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.RestoreRecyclingJobsResponse`
|
3385
|
+
"""
|
3386
|
+
http_info = self._restore_recycling_jobs_http_info(request)
|
3387
|
+
return self._call_api(**http_info)
|
3388
|
+
|
3389
|
+
def restore_recycling_jobs_async_invoker(self, request):
|
3390
|
+
http_info = self._restore_recycling_jobs_http_info(request)
|
3391
|
+
return AsyncInvoker(self, http_info)
|
3392
|
+
|
3393
|
+
def _restore_recycling_jobs_http_info(self, request):
|
3394
|
+
http_info = {
|
3395
|
+
"method": "POST",
|
3396
|
+
"resource_path": "/v1/job/recycling-restoration",
|
3397
|
+
"request_type": request.__class__.__name__,
|
3398
|
+
"response_type": "RestoreRecyclingJobsResponse"
|
3399
|
+
}
|
3400
|
+
|
3401
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3402
|
+
|
3403
|
+
cname = None
|
3404
|
+
|
3405
|
+
collection_formats = {}
|
3406
|
+
|
3407
|
+
path_params = {}
|
3408
|
+
|
3409
|
+
query_params = []
|
3410
|
+
|
3411
|
+
header_params = {}
|
3412
|
+
|
3413
|
+
form_params = {}
|
3414
|
+
|
3415
|
+
body = None
|
3416
|
+
if 'body' in local_var_params:
|
3417
|
+
body = local_var_params['body']
|
3418
|
+
if isinstance(request, SdkStreamRequest):
|
3419
|
+
body = request.get_file_stream()
|
3420
|
+
|
3421
|
+
response_headers = []
|
3422
|
+
|
3423
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3424
|
+
['application/json'])
|
3425
|
+
|
3426
|
+
auth_settings = ['apig-auth-iam']
|
3427
|
+
|
3428
|
+
http_info["cname"] = cname
|
3429
|
+
http_info["collection_formats"] = collection_formats
|
3430
|
+
http_info["path_params"] = path_params
|
3431
|
+
http_info["query_params"] = query_params
|
3432
|
+
http_info["header_params"] = header_params
|
3433
|
+
http_info["post_params"] = form_params
|
3434
|
+
http_info["body"] = body
|
3435
|
+
http_info["response_headers"] = response_headers
|
3436
|
+
|
3437
|
+
return http_info
|
3438
|
+
|
3439
|
+
def set_keep_time_async(self, request):
|
3440
|
+
r"""设置回收站中的任务保留时间
|
3441
|
+
|
3442
|
+
设置回收站中的任务保留时间,该接口需要租户账号才能访问,租户子账号无权限访问。
|
3443
|
+
|
3444
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3445
|
+
|
3446
|
+
|
3447
|
+
:param request: Request instance for SetKeepTime
|
3448
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.SetKeepTimeRequest`
|
3449
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.SetKeepTimeResponse`
|
3450
|
+
"""
|
3451
|
+
http_info = self._set_keep_time_http_info(request)
|
3452
|
+
return self._call_api(**http_info)
|
3453
|
+
|
3454
|
+
def set_keep_time_async_invoker(self, request):
|
3455
|
+
http_info = self._set_keep_time_http_info(request)
|
3456
|
+
return AsyncInvoker(self, http_info)
|
3457
|
+
|
3458
|
+
def _set_keep_time_http_info(self, request):
|
3459
|
+
http_info = {
|
3460
|
+
"method": "POST",
|
3461
|
+
"resource_path": "/v1/job/keep-time",
|
3462
|
+
"request_type": request.__class__.__name__,
|
3463
|
+
"response_type": "SetKeepTimeResponse"
|
3464
|
+
}
|
3465
|
+
|
3466
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3467
|
+
|
3468
|
+
cname = None
|
3469
|
+
|
3470
|
+
collection_formats = {}
|
3471
|
+
|
3472
|
+
path_params = {}
|
3473
|
+
|
3474
|
+
query_params = []
|
2827
3475
|
|
2828
3476
|
header_params = {}
|
2829
3477
|
|
2830
3478
|
form_params = {}
|
2831
3479
|
|
2832
3480
|
body = None
|
3481
|
+
if 'body' in local_var_params:
|
3482
|
+
body = local_var_params['body']
|
2833
3483
|
if isinstance(request, SdkStreamRequest):
|
2834
3484
|
body = request.get_file_stream()
|
2835
3485
|
|
@@ -3440,31 +4090,293 @@ class CodeArtsBuildAsyncClient(Client):
|
|
3440
4090
|
|
3441
4091
|
return http_info
|
3442
4092
|
|
3443
|
-
def show_job_role_permission_async(self, request):
|
3444
|
-
r"""获取构建任务的角色权限矩阵信息
|
4093
|
+
def show_job_role_permission_async(self, request):
|
4094
|
+
r"""获取构建任务的角色权限矩阵信息
|
4095
|
+
|
4096
|
+
获取构建任务的角色权限矩阵信息
|
4097
|
+
|
4098
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4099
|
+
|
4100
|
+
|
4101
|
+
:param request: Request instance for ShowJobRolePermission
|
4102
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobRolePermissionRequest`
|
4103
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobRolePermissionResponse`
|
4104
|
+
"""
|
4105
|
+
http_info = self._show_job_role_permission_http_info(request)
|
4106
|
+
return self._call_api(**http_info)
|
4107
|
+
|
4108
|
+
def show_job_role_permission_async_invoker(self, request):
|
4109
|
+
http_info = self._show_job_role_permission_http_info(request)
|
4110
|
+
return AsyncInvoker(self, http_info)
|
4111
|
+
|
4112
|
+
def _show_job_role_permission_http_info(self, request):
|
4113
|
+
http_info = {
|
4114
|
+
"method": "GET",
|
4115
|
+
"resource_path": "/v1/job/permission/role",
|
4116
|
+
"request_type": request.__class__.__name__,
|
4117
|
+
"response_type": "ShowJobRolePermissionResponse"
|
4118
|
+
}
|
4119
|
+
|
4120
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4121
|
+
|
4122
|
+
cname = None
|
4123
|
+
|
4124
|
+
collection_formats = {}
|
4125
|
+
|
4126
|
+
path_params = {}
|
4127
|
+
|
4128
|
+
query_params = []
|
4129
|
+
if 'job_id' in local_var_params:
|
4130
|
+
query_params.append(('job_id', local_var_params['job_id']))
|
4131
|
+
|
4132
|
+
header_params = {}
|
4133
|
+
|
4134
|
+
form_params = {}
|
4135
|
+
|
4136
|
+
body = None
|
4137
|
+
if isinstance(request, SdkStreamRequest):
|
4138
|
+
body = request.get_file_stream()
|
4139
|
+
|
4140
|
+
response_headers = []
|
4141
|
+
|
4142
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4143
|
+
['application/json'])
|
4144
|
+
|
4145
|
+
auth_settings = ['apig-auth-iam']
|
4146
|
+
|
4147
|
+
http_info["cname"] = cname
|
4148
|
+
http_info["collection_formats"] = collection_formats
|
4149
|
+
http_info["path_params"] = path_params
|
4150
|
+
http_info["query_params"] = query_params
|
4151
|
+
http_info["header_params"] = header_params
|
4152
|
+
http_info["post_params"] = form_params
|
4153
|
+
http_info["body"] = body
|
4154
|
+
http_info["response_headers"] = response_headers
|
4155
|
+
|
4156
|
+
return http_info
|
4157
|
+
|
4158
|
+
def show_job_step_status_async(self, request):
|
4159
|
+
r"""查询任务状态
|
4160
|
+
|
4161
|
+
查询任务状态
|
4162
|
+
|
4163
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4164
|
+
|
4165
|
+
|
4166
|
+
:param request: Request instance for ShowJobStepStatus
|
4167
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobStepStatusRequest`
|
4168
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobStepStatusResponse`
|
4169
|
+
"""
|
4170
|
+
http_info = self._show_job_step_status_http_info(request)
|
4171
|
+
return self._call_api(**http_info)
|
4172
|
+
|
4173
|
+
def show_job_step_status_async_invoker(self, request):
|
4174
|
+
http_info = self._show_job_step_status_http_info(request)
|
4175
|
+
return AsyncInvoker(self, http_info)
|
4176
|
+
|
4177
|
+
def _show_job_step_status_http_info(self, request):
|
4178
|
+
http_info = {
|
4179
|
+
"method": "GET",
|
4180
|
+
"resource_path": "/v1/job/{job_id}/status",
|
4181
|
+
"request_type": request.__class__.__name__,
|
4182
|
+
"response_type": "ShowJobStepStatusResponse"
|
4183
|
+
}
|
4184
|
+
|
4185
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4186
|
+
|
4187
|
+
cname = None
|
4188
|
+
|
4189
|
+
collection_formats = {}
|
4190
|
+
|
4191
|
+
path_params = {}
|
4192
|
+
if 'job_id' in local_var_params:
|
4193
|
+
path_params['job_id'] = local_var_params['job_id']
|
4194
|
+
|
4195
|
+
query_params = []
|
4196
|
+
if 'build_no' in local_var_params:
|
4197
|
+
query_params.append(('build_no', local_var_params['build_no']))
|
4198
|
+
|
4199
|
+
header_params = {}
|
4200
|
+
|
4201
|
+
form_params = {}
|
4202
|
+
|
4203
|
+
body = None
|
4204
|
+
if isinstance(request, SdkStreamRequest):
|
4205
|
+
body = request.get_file_stream()
|
4206
|
+
|
4207
|
+
response_headers = []
|
4208
|
+
|
4209
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4210
|
+
['application/json'])
|
4211
|
+
|
4212
|
+
auth_settings = ['apig-auth-iam']
|
4213
|
+
|
4214
|
+
http_info["cname"] = cname
|
4215
|
+
http_info["collection_formats"] = collection_formats
|
4216
|
+
http_info["path_params"] = path_params
|
4217
|
+
http_info["query_params"] = query_params
|
4218
|
+
http_info["header_params"] = header_params
|
4219
|
+
http_info["post_params"] = form_params
|
4220
|
+
http_info["body"] = body
|
4221
|
+
http_info["response_headers"] = response_headers
|
4222
|
+
|
4223
|
+
return http_info
|
4224
|
+
|
4225
|
+
def show_job_system_parameters_async(self, request):
|
4226
|
+
r"""查看系统预定义参数
|
4227
|
+
|
4228
|
+
查看系统预定义参数
|
4229
|
+
|
4230
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4231
|
+
|
4232
|
+
|
4233
|
+
:param request: Request instance for ShowJobSystemParameters
|
4234
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSystemParametersRequest`
|
4235
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSystemParametersResponse`
|
4236
|
+
"""
|
4237
|
+
http_info = self._show_job_system_parameters_http_info(request)
|
4238
|
+
return self._call_api(**http_info)
|
4239
|
+
|
4240
|
+
def show_job_system_parameters_async_invoker(self, request):
|
4241
|
+
http_info = self._show_job_system_parameters_http_info(request)
|
4242
|
+
return AsyncInvoker(self, http_info)
|
4243
|
+
|
4244
|
+
def _show_job_system_parameters_http_info(self, request):
|
4245
|
+
http_info = {
|
4246
|
+
"method": "GET",
|
4247
|
+
"resource_path": "/v1/job/system-parameters",
|
4248
|
+
"request_type": request.__class__.__name__,
|
4249
|
+
"response_type": "ShowJobSystemParametersResponse"
|
4250
|
+
}
|
4251
|
+
|
4252
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4253
|
+
|
4254
|
+
cname = None
|
4255
|
+
|
4256
|
+
collection_formats = {}
|
4257
|
+
|
4258
|
+
path_params = {}
|
4259
|
+
|
4260
|
+
query_params = []
|
4261
|
+
|
4262
|
+
header_params = {}
|
4263
|
+
|
4264
|
+
form_params = {}
|
4265
|
+
|
4266
|
+
body = None
|
4267
|
+
if isinstance(request, SdkStreamRequest):
|
4268
|
+
body = request.get_file_stream()
|
4269
|
+
|
4270
|
+
response_headers = []
|
4271
|
+
|
4272
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4273
|
+
['application/json'])
|
4274
|
+
|
4275
|
+
auth_settings = ['apig-auth-iam']
|
4276
|
+
|
4277
|
+
http_info["cname"] = cname
|
4278
|
+
http_info["collection_formats"] = collection_formats
|
4279
|
+
http_info["path_params"] = path_params
|
4280
|
+
http_info["query_params"] = query_params
|
4281
|
+
http_info["header_params"] = header_params
|
4282
|
+
http_info["post_params"] = form_params
|
4283
|
+
http_info["body"] = body
|
4284
|
+
http_info["response_headers"] = response_headers
|
4285
|
+
|
4286
|
+
return http_info
|
4287
|
+
|
4288
|
+
def show_project_job_permission_async(self, request):
|
4289
|
+
r"""获取任务权限矩阵
|
4290
|
+
|
4291
|
+
获取任务权限矩阵
|
4292
|
+
|
4293
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4294
|
+
|
4295
|
+
|
4296
|
+
:param request: Request instance for ShowProjectJobPermission
|
4297
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectJobPermissionRequest`
|
4298
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectJobPermissionResponse`
|
4299
|
+
"""
|
4300
|
+
http_info = self._show_project_job_permission_http_info(request)
|
4301
|
+
return self._call_api(**http_info)
|
4302
|
+
|
4303
|
+
def show_project_job_permission_async_invoker(self, request):
|
4304
|
+
http_info = self._show_project_job_permission_http_info(request)
|
4305
|
+
return AsyncInvoker(self, http_info)
|
4306
|
+
|
4307
|
+
def _show_project_job_permission_http_info(self, request):
|
4308
|
+
http_info = {
|
4309
|
+
"method": "GET",
|
4310
|
+
"resource_path": "/v1/job/permission",
|
4311
|
+
"request_type": request.__class__.__name__,
|
4312
|
+
"response_type": "ShowProjectJobPermissionResponse"
|
4313
|
+
}
|
4314
|
+
|
4315
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4316
|
+
|
4317
|
+
cname = None
|
4318
|
+
|
4319
|
+
collection_formats = {}
|
4320
|
+
|
4321
|
+
path_params = {}
|
4322
|
+
|
4323
|
+
query_params = []
|
4324
|
+
if 'project_id' in local_var_params:
|
4325
|
+
query_params.append(('project_id', local_var_params['project_id']))
|
4326
|
+
if 'job_id' in local_var_params:
|
4327
|
+
query_params.append(('job_id', local_var_params['job_id']))
|
4328
|
+
|
4329
|
+
header_params = {}
|
4330
|
+
|
4331
|
+
form_params = {}
|
4332
|
+
|
4333
|
+
body = None
|
4334
|
+
if isinstance(request, SdkStreamRequest):
|
4335
|
+
body = request.get_file_stream()
|
4336
|
+
|
4337
|
+
response_headers = []
|
4338
|
+
|
4339
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4340
|
+
['application/json'])
|
4341
|
+
|
4342
|
+
auth_settings = ['apig-auth-iam']
|
4343
|
+
|
4344
|
+
http_info["cname"] = cname
|
4345
|
+
http_info["collection_formats"] = collection_formats
|
4346
|
+
http_info["path_params"] = path_params
|
4347
|
+
http_info["query_params"] = query_params
|
4348
|
+
http_info["header_params"] = header_params
|
4349
|
+
http_info["post_params"] = form_params
|
4350
|
+
http_info["body"] = body
|
4351
|
+
http_info["response_headers"] = response_headers
|
4352
|
+
|
4353
|
+
return http_info
|
4354
|
+
|
4355
|
+
def show_running_status_async(self, request):
|
4356
|
+
r"""查看任务是否在构建
|
3445
4357
|
|
3446
|
-
|
4358
|
+
查看任务是否在构建
|
3447
4359
|
|
3448
4360
|
Please refer to HUAWEI cloud API Explorer for details.
|
3449
4361
|
|
3450
4362
|
|
3451
|
-
:param request: Request instance for
|
3452
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3453
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4363
|
+
:param request: Request instance for ShowRunningStatus
|
4364
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRunningStatusRequest`
|
4365
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRunningStatusResponse`
|
3454
4366
|
"""
|
3455
|
-
http_info = self.
|
4367
|
+
http_info = self._show_running_status_http_info(request)
|
3456
4368
|
return self._call_api(**http_info)
|
3457
4369
|
|
3458
|
-
def
|
3459
|
-
http_info = self.
|
4370
|
+
def show_running_status_async_invoker(self, request):
|
4371
|
+
http_info = self._show_running_status_http_info(request)
|
3460
4372
|
return AsyncInvoker(self, http_info)
|
3461
4373
|
|
3462
|
-
def
|
4374
|
+
def _show_running_status_http_info(self, request):
|
3463
4375
|
http_info = {
|
3464
4376
|
"method": "GET",
|
3465
|
-
"resource_path": "/v1/job/
|
4377
|
+
"resource_path": "/v1/job/{job_id}/running-status",
|
3466
4378
|
"request_type": request.__class__.__name__,
|
3467
|
-
"response_type": "
|
4379
|
+
"response_type": "ShowRunningStatusResponse"
|
3468
4380
|
}
|
3469
4381
|
|
3470
4382
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -3474,10 +4386,10 @@ class CodeArtsBuildAsyncClient(Client):
|
|
3474
4386
|
collection_formats = {}
|
3475
4387
|
|
3476
4388
|
path_params = {}
|
4389
|
+
if 'job_id' in local_var_params:
|
4390
|
+
path_params['job_id'] = local_var_params['job_id']
|
3477
4391
|
|
3478
4392
|
query_params = []
|
3479
|
-
if 'job_id' in local_var_params:
|
3480
|
-
query_params.append(('job_id', local_var_params['job_id']))
|
3481
4393
|
|
3482
4394
|
header_params = {}
|
3483
4395
|
|
@@ -3505,31 +4417,31 @@ class CodeArtsBuildAsyncClient(Client):
|
|
3505
4417
|
|
3506
4418
|
return http_info
|
3507
4419
|
|
3508
|
-
def
|
3509
|
-
r"""
|
4420
|
+
def update_new_job_async(self, request):
|
4421
|
+
r"""更新构建任务
|
3510
4422
|
|
3511
|
-
|
4423
|
+
更新构建任务
|
3512
4424
|
|
3513
4425
|
Please refer to HUAWEI cloud API Explorer for details.
|
3514
4426
|
|
3515
4427
|
|
3516
|
-
:param request: Request instance for
|
3517
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3518
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4428
|
+
:param request: Request instance for UpdateNewJob
|
4429
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateNewJobRequest`
|
4430
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateNewJobResponse`
|
3519
4431
|
"""
|
3520
|
-
http_info = self.
|
4432
|
+
http_info = self._update_new_job_http_info(request)
|
3521
4433
|
return self._call_api(**http_info)
|
3522
4434
|
|
3523
|
-
def
|
3524
|
-
http_info = self.
|
4435
|
+
def update_new_job_async_invoker(self, request):
|
4436
|
+
http_info = self._update_new_job_http_info(request)
|
3525
4437
|
return AsyncInvoker(self, http_info)
|
3526
4438
|
|
3527
|
-
def
|
4439
|
+
def _update_new_job_http_info(self, request):
|
3528
4440
|
http_info = {
|
3529
|
-
"method": "
|
3530
|
-
"resource_path": "/v1/job/
|
4441
|
+
"method": "POST",
|
4442
|
+
"resource_path": "/v1/job/update",
|
3531
4443
|
"request_type": request.__class__.__name__,
|
3532
|
-
"response_type": "
|
4444
|
+
"response_type": "UpdateNewJobResponse"
|
3533
4445
|
}
|
3534
4446
|
|
3535
4447
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -3539,18 +4451,16 @@ class CodeArtsBuildAsyncClient(Client):
|
|
3539
4451
|
collection_formats = {}
|
3540
4452
|
|
3541
4453
|
path_params = {}
|
3542
|
-
if 'job_id' in local_var_params:
|
3543
|
-
path_params['job_id'] = local_var_params['job_id']
|
3544
4454
|
|
3545
4455
|
query_params = []
|
3546
|
-
if 'build_no' in local_var_params:
|
3547
|
-
query_params.append(('build_no', local_var_params['build_no']))
|
3548
4456
|
|
3549
4457
|
header_params = {}
|
3550
4458
|
|
3551
4459
|
form_params = {}
|
3552
4460
|
|
3553
4461
|
body = None
|
4462
|
+
if 'body' in local_var_params:
|
4463
|
+
body = local_var_params['body']
|
3554
4464
|
if isinstance(request, SdkStreamRequest):
|
3555
4465
|
body = request.get_file_stream()
|
3556
4466
|
|
@@ -3572,31 +4482,31 @@ class CodeArtsBuildAsyncClient(Client):
|
|
3572
4482
|
|
3573
4483
|
return http_info
|
3574
4484
|
|
3575
|
-
def
|
3576
|
-
r"""
|
4485
|
+
def delete_keystore_async(self, request):
|
4486
|
+
r"""删除文件管理文件
|
3577
4487
|
|
3578
|
-
|
4488
|
+
删除文件管理文件
|
3579
4489
|
|
3580
4490
|
Please refer to HUAWEI cloud API Explorer for details.
|
3581
4491
|
|
3582
4492
|
|
3583
|
-
:param request: Request instance for
|
3584
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3585
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4493
|
+
:param request: Request instance for DeleteKeystore
|
4494
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteKeystoreRequest`
|
4495
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteKeystoreResponse`
|
3586
4496
|
"""
|
3587
|
-
http_info = self.
|
4497
|
+
http_info = self._delete_keystore_http_info(request)
|
3588
4498
|
return self._call_api(**http_info)
|
3589
4499
|
|
3590
|
-
def
|
3591
|
-
http_info = self.
|
4500
|
+
def delete_keystore_async_invoker(self, request):
|
4501
|
+
http_info = self._delete_keystore_http_info(request)
|
3592
4502
|
return AsyncInvoker(self, http_info)
|
3593
4503
|
|
3594
|
-
def
|
4504
|
+
def _delete_keystore_http_info(self, request):
|
3595
4505
|
http_info = {
|
3596
|
-
"method": "
|
3597
|
-
"resource_path": "/
|
4506
|
+
"method": "DELETE",
|
4507
|
+
"resource_path": "/v2/keystore/{keystore_id}/delete",
|
3598
4508
|
"request_type": request.__class__.__name__,
|
3599
|
-
"response_type": "
|
4509
|
+
"response_type": "DeleteKeystoreResponse"
|
3600
4510
|
}
|
3601
4511
|
|
3602
4512
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -3606,6 +4516,8 @@ class CodeArtsBuildAsyncClient(Client):
|
|
3606
4516
|
collection_formats = {}
|
3607
4517
|
|
3608
4518
|
path_params = {}
|
4519
|
+
if 'keystore_id' in local_var_params:
|
4520
|
+
path_params['keystore_id'] = local_var_params['keystore_id']
|
3609
4521
|
|
3610
4522
|
query_params = []
|
3611
4523
|
|
@@ -3635,31 +4547,31 @@ class CodeArtsBuildAsyncClient(Client):
|
|
3635
4547
|
|
3636
4548
|
return http_info
|
3637
4549
|
|
3638
|
-
def
|
3639
|
-
r"""
|
4550
|
+
def delete_keystore_permission_async(self, request):
|
4551
|
+
r"""文件管理删除权限
|
3640
4552
|
|
3641
|
-
|
4553
|
+
文件管理删除权限
|
3642
4554
|
|
3643
4555
|
Please refer to HUAWEI cloud API Explorer for details.
|
3644
4556
|
|
3645
4557
|
|
3646
|
-
:param request: Request instance for
|
3647
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3648
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4558
|
+
:param request: Request instance for DeleteKeystorePermission
|
4559
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteKeystorePermissionRequest`
|
4560
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteKeystorePermissionResponse`
|
3649
4561
|
"""
|
3650
|
-
http_info = self.
|
4562
|
+
http_info = self._delete_keystore_permission_http_info(request)
|
3651
4563
|
return self._call_api(**http_info)
|
3652
4564
|
|
3653
|
-
def
|
3654
|
-
http_info = self.
|
4565
|
+
def delete_keystore_permission_async_invoker(self, request):
|
4566
|
+
http_info = self._delete_keystore_permission_http_info(request)
|
3655
4567
|
return AsyncInvoker(self, http_info)
|
3656
4568
|
|
3657
|
-
def
|
4569
|
+
def _delete_keystore_permission_http_info(self, request):
|
3658
4570
|
http_info = {
|
3659
|
-
"method": "
|
3660
|
-
"resource_path": "/
|
4571
|
+
"method": "DELETE",
|
4572
|
+
"resource_path": "/v2/keystore/permission/{permission_id}/delete",
|
3661
4573
|
"request_type": request.__class__.__name__,
|
3662
|
-
"response_type": "
|
4574
|
+
"response_type": "DeleteKeystorePermissionResponse"
|
3663
4575
|
}
|
3664
4576
|
|
3665
4577
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -3669,8 +4581,8 @@ class CodeArtsBuildAsyncClient(Client):
|
|
3669
4581
|
collection_formats = {}
|
3670
4582
|
|
3671
4583
|
path_params = {}
|
3672
|
-
if '
|
3673
|
-
path_params['
|
4584
|
+
if 'permission_id' in local_var_params:
|
4585
|
+
path_params['permission_id'] = local_var_params['permission_id']
|
3674
4586
|
|
3675
4587
|
query_params = []
|
3676
4588
|
|
@@ -3970,6 +4882,144 @@ class CodeArtsBuildAsyncClient(Client):
|
|
3970
4882
|
|
3971
4883
|
return http_info
|
3972
4884
|
|
4885
|
+
def update_keystore_async(self, request):
|
4886
|
+
r"""更新文件信息
|
4887
|
+
|
4888
|
+
更新文件信息
|
4889
|
+
|
4890
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4891
|
+
|
4892
|
+
|
4893
|
+
:param request: Request instance for UpdateKeystore
|
4894
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateKeystoreRequest`
|
4895
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateKeystoreResponse`
|
4896
|
+
"""
|
4897
|
+
http_info = self._update_keystore_http_info(request)
|
4898
|
+
return self._call_api(**http_info)
|
4899
|
+
|
4900
|
+
def update_keystore_async_invoker(self, request):
|
4901
|
+
http_info = self._update_keystore_http_info(request)
|
4902
|
+
return AsyncInvoker(self, http_info)
|
4903
|
+
|
4904
|
+
def _update_keystore_http_info(self, request):
|
4905
|
+
http_info = {
|
4906
|
+
"method": "POST",
|
4907
|
+
"resource_path": "/v2/keystore/update/{id}",
|
4908
|
+
"request_type": request.__class__.__name__,
|
4909
|
+
"response_type": "UpdateKeystoreResponse"
|
4910
|
+
}
|
4911
|
+
|
4912
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4913
|
+
|
4914
|
+
cname = None
|
4915
|
+
|
4916
|
+
collection_formats = {}
|
4917
|
+
|
4918
|
+
path_params = {}
|
4919
|
+
if 'id' in local_var_params:
|
4920
|
+
path_params['id'] = local_var_params['id']
|
4921
|
+
|
4922
|
+
query_params = []
|
4923
|
+
|
4924
|
+
header_params = {}
|
4925
|
+
|
4926
|
+
form_params = {}
|
4927
|
+
|
4928
|
+
body = None
|
4929
|
+
if 'body' in local_var_params:
|
4930
|
+
body = local_var_params['body']
|
4931
|
+
if isinstance(request, SdkStreamRequest):
|
4932
|
+
body = request.get_file_stream()
|
4933
|
+
|
4934
|
+
response_headers = []
|
4935
|
+
|
4936
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4937
|
+
['application/json'])
|
4938
|
+
|
4939
|
+
auth_settings = ['apig-auth-iam']
|
4940
|
+
|
4941
|
+
http_info["cname"] = cname
|
4942
|
+
http_info["collection_formats"] = collection_formats
|
4943
|
+
http_info["path_params"] = path_params
|
4944
|
+
http_info["query_params"] = query_params
|
4945
|
+
http_info["header_params"] = header_params
|
4946
|
+
http_info["post_params"] = form_params
|
4947
|
+
http_info["body"] = body
|
4948
|
+
http_info["response_headers"] = response_headers
|
4949
|
+
|
4950
|
+
return http_info
|
4951
|
+
|
4952
|
+
def upload_keystore_async(self, request):
|
4953
|
+
r"""上传文件
|
4954
|
+
|
4955
|
+
上传文件
|
4956
|
+
|
4957
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4958
|
+
|
4959
|
+
|
4960
|
+
:param request: Request instance for UploadKeystore
|
4961
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.UploadKeystoreRequest`
|
4962
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.UploadKeystoreResponse`
|
4963
|
+
"""
|
4964
|
+
http_info = self._upload_keystore_http_info(request)
|
4965
|
+
return self._call_api(**http_info)
|
4966
|
+
|
4967
|
+
def upload_keystore_async_invoker(self, request):
|
4968
|
+
http_info = self._upload_keystore_http_info(request)
|
4969
|
+
return AsyncInvoker(self, http_info)
|
4970
|
+
|
4971
|
+
def _upload_keystore_http_info(self, request):
|
4972
|
+
http_info = {
|
4973
|
+
"method": "POST",
|
4974
|
+
"resource_path": "/v2/keystore/upload",
|
4975
|
+
"request_type": request.__class__.__name__,
|
4976
|
+
"response_type": "UploadKeystoreResponse"
|
4977
|
+
}
|
4978
|
+
|
4979
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4980
|
+
|
4981
|
+
cname = None
|
4982
|
+
|
4983
|
+
collection_formats = {}
|
4984
|
+
|
4985
|
+
path_params = {}
|
4986
|
+
|
4987
|
+
query_params = []
|
4988
|
+
|
4989
|
+
header_params = {}
|
4990
|
+
|
4991
|
+
form_params = {}
|
4992
|
+
if 'file' in local_var_params:
|
4993
|
+
form_params['file'] = local_var_params['file']
|
4994
|
+
if 'privacy' in local_var_params:
|
4995
|
+
form_params['privacy'] = local_var_params['privacy']
|
4996
|
+
if 'description' in local_var_params:
|
4997
|
+
form_params['description'] = local_var_params['description']
|
4998
|
+
|
4999
|
+
body = None
|
5000
|
+
if 'body' in local_var_params:
|
5001
|
+
body = local_var_params['body']
|
5002
|
+
if isinstance(request, SdkStreamRequest):
|
5003
|
+
body = request.get_file_stream()
|
5004
|
+
|
5005
|
+
response_headers = []
|
5006
|
+
|
5007
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
5008
|
+
['multipart/form-data'])
|
5009
|
+
|
5010
|
+
auth_settings = ['apig-auth-iam']
|
5011
|
+
|
5012
|
+
http_info["cname"] = cname
|
5013
|
+
http_info["collection_formats"] = collection_formats
|
5014
|
+
http_info["path_params"] = path_params
|
5015
|
+
http_info["query_params"] = query_params
|
5016
|
+
http_info["header_params"] = header_params
|
5017
|
+
http_info["post_params"] = form_params
|
5018
|
+
http_info["body"] = body
|
5019
|
+
http_info["response_headers"] = response_headers
|
5020
|
+
|
5021
|
+
return http_info
|
5022
|
+
|
3973
5023
|
def download_log_by_record_id_async(self, request):
|
3974
5024
|
r"""下载构建日志(待下线)
|
3975
5025
|
|
@@ -4108,23 +5158,90 @@ class CodeArtsBuildAsyncClient(Client):
|
|
4108
5158
|
Please refer to HUAWEI cloud API Explorer for details.
|
4109
5159
|
|
4110
5160
|
|
4111
|
-
:param request: Request instance for ShowRecordInfo
|
4112
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRecordInfoRequest`
|
4113
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRecordInfoResponse`
|
5161
|
+
:param request: Request instance for ShowRecordInfo
|
5162
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRecordInfoRequest`
|
5163
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRecordInfoResponse`
|
5164
|
+
"""
|
5165
|
+
http_info = self._show_record_info_http_info(request)
|
5166
|
+
return self._call_api(**http_info)
|
5167
|
+
|
5168
|
+
def show_record_info_async_invoker(self, request):
|
5169
|
+
http_info = self._show_record_info_http_info(request)
|
5170
|
+
return AsyncInvoker(self, http_info)
|
5171
|
+
|
5172
|
+
def _show_record_info_http_info(self, request):
|
5173
|
+
http_info = {
|
5174
|
+
"method": "GET",
|
5175
|
+
"resource_path": "/v3/jobs/{job_id}/{build_no}/record-info",
|
5176
|
+
"request_type": request.__class__.__name__,
|
5177
|
+
"response_type": "ShowRecordInfoResponse"
|
5178
|
+
}
|
5179
|
+
|
5180
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
5181
|
+
|
5182
|
+
cname = None
|
5183
|
+
|
5184
|
+
collection_formats = {}
|
5185
|
+
|
5186
|
+
path_params = {}
|
5187
|
+
if 'job_id' in local_var_params:
|
5188
|
+
path_params['job_id'] = local_var_params['job_id']
|
5189
|
+
if 'build_no' in local_var_params:
|
5190
|
+
path_params['build_no'] = local_var_params['build_no']
|
5191
|
+
|
5192
|
+
query_params = []
|
5193
|
+
|
5194
|
+
header_params = {}
|
5195
|
+
|
5196
|
+
form_params = {}
|
5197
|
+
|
5198
|
+
body = None
|
5199
|
+
if isinstance(request, SdkStreamRequest):
|
5200
|
+
body = request.get_file_stream()
|
5201
|
+
|
5202
|
+
response_headers = []
|
5203
|
+
|
5204
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
5205
|
+
['application/json'])
|
5206
|
+
|
5207
|
+
auth_settings = ['apig-auth-iam']
|
5208
|
+
|
5209
|
+
http_info["cname"] = cname
|
5210
|
+
http_info["collection_formats"] = collection_formats
|
5211
|
+
http_info["path_params"] = path_params
|
5212
|
+
http_info["query_params"] = query_params
|
5213
|
+
http_info["header_params"] = header_params
|
5214
|
+
http_info["post_params"] = form_params
|
5215
|
+
http_info["body"] = body
|
5216
|
+
http_info["response_headers"] = response_headers
|
5217
|
+
|
5218
|
+
return http_info
|
5219
|
+
|
5220
|
+
def stop_job_async(self, request):
|
5221
|
+
r"""停止构建任务(待下线)
|
5222
|
+
|
5223
|
+
停止构建任务(待下线)
|
5224
|
+
|
5225
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
5226
|
+
|
5227
|
+
|
5228
|
+
:param request: Request instance for StopJob
|
5229
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.StopJobRequest`
|
5230
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.StopJobResponse`
|
4114
5231
|
"""
|
4115
|
-
http_info = self.
|
5232
|
+
http_info = self._stop_job_http_info(request)
|
4116
5233
|
return self._call_api(**http_info)
|
4117
5234
|
|
4118
|
-
def
|
4119
|
-
http_info = self.
|
5235
|
+
def stop_job_async_invoker(self, request):
|
5236
|
+
http_info = self._stop_job_http_info(request)
|
4120
5237
|
return AsyncInvoker(self, http_info)
|
4121
5238
|
|
4122
|
-
def
|
5239
|
+
def _stop_job_http_info(self, request):
|
4123
5240
|
http_info = {
|
4124
|
-
"method": "
|
4125
|
-
"resource_path": "/v3/jobs/
|
5241
|
+
"method": "POST",
|
5242
|
+
"resource_path": "/v3/jobs/stop",
|
4126
5243
|
"request_type": request.__class__.__name__,
|
4127
|
-
"response_type": "
|
5244
|
+
"response_type": "StopJobResponse"
|
4128
5245
|
}
|
4129
5246
|
|
4130
5247
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -4134,10 +5251,6 @@ class CodeArtsBuildAsyncClient(Client):
|
|
4134
5251
|
collection_formats = {}
|
4135
5252
|
|
4136
5253
|
path_params = {}
|
4137
|
-
if 'job_id' in local_var_params:
|
4138
|
-
path_params['job_id'] = local_var_params['job_id']
|
4139
|
-
if 'build_no' in local_var_params:
|
4140
|
-
path_params['build_no'] = local_var_params['build_no']
|
4141
5254
|
|
4142
5255
|
query_params = []
|
4143
5256
|
|
@@ -4146,6 +5259,8 @@ class CodeArtsBuildAsyncClient(Client):
|
|
4146
5259
|
form_params = {}
|
4147
5260
|
|
4148
5261
|
body = None
|
5262
|
+
if 'body' in local_var_params:
|
5263
|
+
body = local_var_params['body']
|
4149
5264
|
if isinstance(request, SdkStreamRequest):
|
4150
5265
|
body = request.get_file_stream()
|
4151
5266
|
|
@@ -4167,31 +5282,31 @@ class CodeArtsBuildAsyncClient(Client):
|
|
4167
5282
|
|
4168
5283
|
return http_info
|
4169
5284
|
|
4170
|
-
def
|
4171
|
-
r"""
|
5285
|
+
def list_brief_record_async(self, request):
|
5286
|
+
r"""获取指定工程的简要构建信息
|
4172
5287
|
|
4173
|
-
|
5288
|
+
获取指定工程的简要构建信息
|
4174
5289
|
|
4175
5290
|
Please refer to HUAWEI cloud API Explorer for details.
|
4176
5291
|
|
4177
5292
|
|
4178
|
-
:param request: Request instance for
|
4179
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4180
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
5293
|
+
:param request: Request instance for ListBriefRecord
|
5294
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListBriefRecordRequest`
|
5295
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListBriefRecordResponse`
|
4181
5296
|
"""
|
4182
|
-
http_info = self.
|
5297
|
+
http_info = self._list_brief_record_http_info(request)
|
4183
5298
|
return self._call_api(**http_info)
|
4184
5299
|
|
4185
|
-
def
|
4186
|
-
http_info = self.
|
5300
|
+
def list_brief_record_async_invoker(self, request):
|
5301
|
+
http_info = self._list_brief_record_http_info(request)
|
4187
5302
|
return AsyncInvoker(self, http_info)
|
4188
5303
|
|
4189
|
-
def
|
5304
|
+
def _list_brief_record_http_info(self, request):
|
4190
5305
|
http_info = {
|
4191
5306
|
"method": "POST",
|
4192
|
-
"resource_path": "/
|
5307
|
+
"resource_path": "/v1/record/brief",
|
4193
5308
|
"request_type": request.__class__.__name__,
|
4194
|
-
"response_type": "
|
5309
|
+
"response_type": "ListBriefRecordResponse"
|
4195
5310
|
}
|
4196
5311
|
|
4197
5312
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -4203,6 +5318,8 @@ class CodeArtsBuildAsyncClient(Client):
|
|
4203
5318
|
path_params = {}
|
4204
5319
|
|
4205
5320
|
query_params = []
|
5321
|
+
if 'limit' in local_var_params:
|
5322
|
+
query_params.append(('limit', local_var_params['limit']))
|
4206
5323
|
|
4207
5324
|
header_params = {}
|
4208
5325
|
|
@@ -5329,6 +6446,136 @@ class CodeArtsBuildAsyncClient(Client):
|
|
5329
6446
|
|
5330
6447
|
return http_info
|
5331
6448
|
|
6449
|
+
def create_template_async(self, request):
|
6450
|
+
r"""创建构建模板
|
6451
|
+
|
6452
|
+
创建构建模板
|
6453
|
+
|
6454
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
6455
|
+
|
6456
|
+
|
6457
|
+
:param request: Request instance for CreateTemplate
|
6458
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.CreateTemplateRequest`
|
6459
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CreateTemplateResponse`
|
6460
|
+
"""
|
6461
|
+
http_info = self._create_template_http_info(request)
|
6462
|
+
return self._call_api(**http_info)
|
6463
|
+
|
6464
|
+
def create_template_async_invoker(self, request):
|
6465
|
+
http_info = self._create_template_http_info(request)
|
6466
|
+
return AsyncInvoker(self, http_info)
|
6467
|
+
|
6468
|
+
def _create_template_http_info(self, request):
|
6469
|
+
http_info = {
|
6470
|
+
"method": "POST",
|
6471
|
+
"resource_path": "/v1/template/create",
|
6472
|
+
"request_type": request.__class__.__name__,
|
6473
|
+
"response_type": "CreateTemplateResponse"
|
6474
|
+
}
|
6475
|
+
|
6476
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
6477
|
+
|
6478
|
+
cname = None
|
6479
|
+
|
6480
|
+
collection_formats = {}
|
6481
|
+
|
6482
|
+
path_params = {}
|
6483
|
+
|
6484
|
+
query_params = []
|
6485
|
+
|
6486
|
+
header_params = {}
|
6487
|
+
|
6488
|
+
form_params = {}
|
6489
|
+
|
6490
|
+
body = None
|
6491
|
+
if 'body' in local_var_params:
|
6492
|
+
body = local_var_params['body']
|
6493
|
+
if isinstance(request, SdkStreamRequest):
|
6494
|
+
body = request.get_file_stream()
|
6495
|
+
|
6496
|
+
response_headers = []
|
6497
|
+
|
6498
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
6499
|
+
['application/json'])
|
6500
|
+
|
6501
|
+
auth_settings = ['apig-auth-iam']
|
6502
|
+
|
6503
|
+
http_info["cname"] = cname
|
6504
|
+
http_info["collection_formats"] = collection_formats
|
6505
|
+
http_info["path_params"] = path_params
|
6506
|
+
http_info["query_params"] = query_params
|
6507
|
+
http_info["header_params"] = header_params
|
6508
|
+
http_info["post_params"] = form_params
|
6509
|
+
http_info["body"] = body
|
6510
|
+
http_info["response_headers"] = response_headers
|
6511
|
+
|
6512
|
+
return http_info
|
6513
|
+
|
6514
|
+
def delete_template_async(self, request):
|
6515
|
+
r"""删除构建模板
|
6516
|
+
|
6517
|
+
删除构建模板
|
6518
|
+
|
6519
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
6520
|
+
|
6521
|
+
|
6522
|
+
:param request: Request instance for DeleteTemplate
|
6523
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteTemplateRequest`
|
6524
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteTemplateResponse`
|
6525
|
+
"""
|
6526
|
+
http_info = self._delete_template_http_info(request)
|
6527
|
+
return self._call_api(**http_info)
|
6528
|
+
|
6529
|
+
def delete_template_async_invoker(self, request):
|
6530
|
+
http_info = self._delete_template_http_info(request)
|
6531
|
+
return AsyncInvoker(self, http_info)
|
6532
|
+
|
6533
|
+
def _delete_template_http_info(self, request):
|
6534
|
+
http_info = {
|
6535
|
+
"method": "DELETE",
|
6536
|
+
"resource_path": "/v1/template/{uuid}/delete",
|
6537
|
+
"request_type": request.__class__.__name__,
|
6538
|
+
"response_type": "DeleteTemplateResponse"
|
6539
|
+
}
|
6540
|
+
|
6541
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
6542
|
+
|
6543
|
+
cname = None
|
6544
|
+
|
6545
|
+
collection_formats = {}
|
6546
|
+
|
6547
|
+
path_params = {}
|
6548
|
+
if 'uuid' in local_var_params:
|
6549
|
+
path_params['uuid'] = local_var_params['uuid']
|
6550
|
+
|
6551
|
+
query_params = []
|
6552
|
+
|
6553
|
+
header_params = {}
|
6554
|
+
|
6555
|
+
form_params = {}
|
6556
|
+
|
6557
|
+
body = None
|
6558
|
+
if isinstance(request, SdkStreamRequest):
|
6559
|
+
body = request.get_file_stream()
|
6560
|
+
|
6561
|
+
response_headers = []
|
6562
|
+
|
6563
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
6564
|
+
['application/json'])
|
6565
|
+
|
6566
|
+
auth_settings = ['apig-auth-iam']
|
6567
|
+
|
6568
|
+
http_info["cname"] = cname
|
6569
|
+
http_info["collection_formats"] = collection_formats
|
6570
|
+
http_info["path_params"] = path_params
|
6571
|
+
http_info["query_params"] = query_params
|
6572
|
+
http_info["header_params"] = header_params
|
6573
|
+
http_info["post_params"] = form_params
|
6574
|
+
http_info["body"] = body
|
6575
|
+
http_info["response_headers"] = response_headers
|
6576
|
+
|
6577
|
+
return http_info
|
6578
|
+
|
5332
6579
|
def list_custom_template_async(self, request):
|
5333
6580
|
r"""根据条件查询特定模板
|
5334
6581
|
|
@@ -5471,6 +6718,136 @@ class CodeArtsBuildAsyncClient(Client):
|
|
5471
6718
|
|
5472
6719
|
return http_info
|
5473
6720
|
|
6721
|
+
def list_recommend_official_template_async(self, request):
|
6722
|
+
r"""获取官方推荐模板
|
6723
|
+
|
6724
|
+
获取官方推荐模板
|
6725
|
+
|
6726
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
6727
|
+
|
6728
|
+
|
6729
|
+
:param request: Request instance for ListRecommendOfficialTemplate
|
6730
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecommendOfficialTemplateRequest`
|
6731
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecommendOfficialTemplateResponse`
|
6732
|
+
"""
|
6733
|
+
http_info = self._list_recommend_official_template_http_info(request)
|
6734
|
+
return self._call_api(**http_info)
|
6735
|
+
|
6736
|
+
def list_recommend_official_template_async_invoker(self, request):
|
6737
|
+
http_info = self._list_recommend_official_template_http_info(request)
|
6738
|
+
return AsyncInvoker(self, http_info)
|
6739
|
+
|
6740
|
+
def _list_recommend_official_template_http_info(self, request):
|
6741
|
+
http_info = {
|
6742
|
+
"method": "POST",
|
6743
|
+
"resource_path": "/v1/template/recommend",
|
6744
|
+
"request_type": request.__class__.__name__,
|
6745
|
+
"response_type": "ListRecommendOfficialTemplateResponse"
|
6746
|
+
}
|
6747
|
+
|
6748
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
6749
|
+
|
6750
|
+
cname = None
|
6751
|
+
|
6752
|
+
collection_formats = {}
|
6753
|
+
|
6754
|
+
path_params = {}
|
6755
|
+
|
6756
|
+
query_params = []
|
6757
|
+
|
6758
|
+
header_params = {}
|
6759
|
+
|
6760
|
+
form_params = {}
|
6761
|
+
|
6762
|
+
body = None
|
6763
|
+
if 'body' in local_var_params:
|
6764
|
+
body = local_var_params['body']
|
6765
|
+
if isinstance(request, SdkStreamRequest):
|
6766
|
+
body = request.get_file_stream()
|
6767
|
+
|
6768
|
+
response_headers = []
|
6769
|
+
|
6770
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
6771
|
+
['application/json'])
|
6772
|
+
|
6773
|
+
auth_settings = ['apig-auth-iam']
|
6774
|
+
|
6775
|
+
http_info["cname"] = cname
|
6776
|
+
http_info["collection_formats"] = collection_formats
|
6777
|
+
http_info["path_params"] = path_params
|
6778
|
+
http_info["query_params"] = query_params
|
6779
|
+
http_info["header_params"] = header_params
|
6780
|
+
http_info["post_params"] = form_params
|
6781
|
+
http_info["body"] = body
|
6782
|
+
http_info["response_headers"] = response_headers
|
6783
|
+
|
6784
|
+
return http_info
|
6785
|
+
|
6786
|
+
def save_template_used_info_async(self, request):
|
6787
|
+
r"""保存模板使用记录
|
6788
|
+
|
6789
|
+
保存模板使用记录
|
6790
|
+
|
6791
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
6792
|
+
|
6793
|
+
|
6794
|
+
:param request: Request instance for SaveTemplateUsedInfo
|
6795
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.SaveTemplateUsedInfoRequest`
|
6796
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.SaveTemplateUsedInfoResponse`
|
6797
|
+
"""
|
6798
|
+
http_info = self._save_template_used_info_http_info(request)
|
6799
|
+
return self._call_api(**http_info)
|
6800
|
+
|
6801
|
+
def save_template_used_info_async_invoker(self, request):
|
6802
|
+
http_info = self._save_template_used_info_http_info(request)
|
6803
|
+
return AsyncInvoker(self, http_info)
|
6804
|
+
|
6805
|
+
def _save_template_used_info_http_info(self, request):
|
6806
|
+
http_info = {
|
6807
|
+
"method": "POST",
|
6808
|
+
"resource_path": "/v1/template/used-info",
|
6809
|
+
"request_type": request.__class__.__name__,
|
6810
|
+
"response_type": "SaveTemplateUsedInfoResponse"
|
6811
|
+
}
|
6812
|
+
|
6813
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
6814
|
+
|
6815
|
+
cname = None
|
6816
|
+
|
6817
|
+
collection_formats = {}
|
6818
|
+
|
6819
|
+
path_params = {}
|
6820
|
+
|
6821
|
+
query_params = []
|
6822
|
+
|
6823
|
+
header_params = {}
|
6824
|
+
|
6825
|
+
form_params = {}
|
6826
|
+
|
6827
|
+
body = None
|
6828
|
+
if 'body' in local_var_params:
|
6829
|
+
body = local_var_params['body']
|
6830
|
+
if isinstance(request, SdkStreamRequest):
|
6831
|
+
body = request.get_file_stream()
|
6832
|
+
|
6833
|
+
response_headers = []
|
6834
|
+
|
6835
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
6836
|
+
['application/json'])
|
6837
|
+
|
6838
|
+
auth_settings = ['apig-auth-iam']
|
6839
|
+
|
6840
|
+
http_info["cname"] = cname
|
6841
|
+
http_info["collection_formats"] = collection_formats
|
6842
|
+
http_info["path_params"] = path_params
|
6843
|
+
http_info["query_params"] = query_params
|
6844
|
+
http_info["header_params"] = header_params
|
6845
|
+
http_info["post_params"] = form_params
|
6846
|
+
http_info["body"] = body
|
6847
|
+
http_info["response_headers"] = response_headers
|
6848
|
+
|
6849
|
+
return http_info
|
6850
|
+
|
5474
6851
|
def show_yaml_template_async(self, request):
|
5475
6852
|
r"""获取代码化构建默认模板
|
5476
6853
|
|