huaweicloudsdkcodeartsbuild 3.1.152__py2.py3-none-any.whl → 3.1.153__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 +42 -1
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1095 -118
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1095 -118
- huaweicloudsdkcodeartsbuild/v3/model/__init__.py +42 -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/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/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/trigger.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_new_job_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_new_job_response.py +170 -0
- {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.153.dist-info}/METADATA +2 -2
- {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.153.dist-info}/RECORD +55 -14
- {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.153.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.153.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.153.dist-info}/top_level.txt +0 -0
@@ -2500,6 +2500,461 @@ class CodeArtsBuildClient(Client):
|
|
2500
2500
|
|
2501
2501
|
return http_info
|
2502
2502
|
|
2503
|
+
def check_webhook_url(self, request):
|
2504
|
+
r"""检查webhook地址参数
|
2505
|
+
|
2506
|
+
检查webhook地址参数
|
2507
|
+
|
2508
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2509
|
+
|
2510
|
+
:param request: Request instance for CheckWebhookUrl
|
2511
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.CheckWebhookUrlRequest`
|
2512
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CheckWebhookUrlResponse`
|
2513
|
+
"""
|
2514
|
+
http_info = self._check_webhook_url_http_info(request)
|
2515
|
+
return self._call_api(**http_info)
|
2516
|
+
|
2517
|
+
def check_webhook_url_invoker(self, request):
|
2518
|
+
http_info = self._check_webhook_url_http_info(request)
|
2519
|
+
return SyncInvoker(self, http_info)
|
2520
|
+
|
2521
|
+
@classmethod
|
2522
|
+
def _check_webhook_url_http_info(cls, 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(self, request):
|
2569
|
+
r"""清空回收站中的任务
|
2570
|
+
|
2571
|
+
清空回收站中的任务
|
2572
|
+
|
2573
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2574
|
+
|
2575
|
+
:param request: Request instance for ClearRecyclingJobs
|
2576
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ClearRecyclingJobsRequest`
|
2577
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ClearRecyclingJobsResponse`
|
2578
|
+
"""
|
2579
|
+
http_info = self._clear_recycling_jobs_http_info(request)
|
2580
|
+
return self._call_api(**http_info)
|
2581
|
+
|
2582
|
+
def clear_recycling_jobs_invoker(self, request):
|
2583
|
+
http_info = self._clear_recycling_jobs_http_info(request)
|
2584
|
+
return SyncInvoker(self, http_info)
|
2585
|
+
|
2586
|
+
@classmethod
|
2587
|
+
def _clear_recycling_jobs_http_info(cls, 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(self, request):
|
2632
|
+
r"""复制构建任务
|
2633
|
+
|
2634
|
+
复制构建任务
|
2635
|
+
|
2636
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2637
|
+
|
2638
|
+
:param request: Request instance for CopyJob
|
2639
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.CopyJobRequest`
|
2640
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CopyJobResponse`
|
2641
|
+
"""
|
2642
|
+
http_info = self._copy_job_http_info(request)
|
2643
|
+
return self._call_api(**http_info)
|
2644
|
+
|
2645
|
+
def copy_job_invoker(self, request):
|
2646
|
+
http_info = self._copy_job_http_info(request)
|
2647
|
+
return SyncInvoker(self, http_info)
|
2648
|
+
|
2649
|
+
@classmethod
|
2650
|
+
def _copy_job_http_info(cls, 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 delete_recycling_jobs(self, request):
|
2697
|
+
r"""删除回收站中的任务
|
2698
|
+
|
2699
|
+
删除回收站中的任务
|
2700
|
+
|
2701
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2702
|
+
|
2703
|
+
:param request: Request instance for DeleteRecyclingJobs
|
2704
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteRecyclingJobsRequest`
|
2705
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteRecyclingJobsResponse`
|
2706
|
+
"""
|
2707
|
+
http_info = self._delete_recycling_jobs_http_info(request)
|
2708
|
+
return self._call_api(**http_info)
|
2709
|
+
|
2710
|
+
def delete_recycling_jobs_invoker(self, request):
|
2711
|
+
http_info = self._delete_recycling_jobs_http_info(request)
|
2712
|
+
return SyncInvoker(self, http_info)
|
2713
|
+
|
2714
|
+
@classmethod
|
2715
|
+
def _delete_recycling_jobs_http_info(cls, request):
|
2716
|
+
http_info = {
|
2717
|
+
"method": "DELETE",
|
2718
|
+
"resource_path": "/v1/job/recycling-deletion",
|
2719
|
+
"request_type": request.__class__.__name__,
|
2720
|
+
"response_type": "DeleteRecyclingJobsResponse"
|
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_the_job(self, request):
|
2762
|
+
r"""删除任务
|
2763
|
+
|
2764
|
+
删除任务
|
2765
|
+
|
2766
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2767
|
+
|
2768
|
+
:param request: Request instance for DeleteTheJob
|
2769
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteTheJobRequest`
|
2770
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteTheJobResponse`
|
2771
|
+
"""
|
2772
|
+
http_info = self._delete_the_job_http_info(request)
|
2773
|
+
return self._call_api(**http_info)
|
2774
|
+
|
2775
|
+
def delete_the_job_invoker(self, request):
|
2776
|
+
http_info = self._delete_the_job_http_info(request)
|
2777
|
+
return SyncInvoker(self, http_info)
|
2778
|
+
|
2779
|
+
@classmethod
|
2780
|
+
def _delete_the_job_http_info(cls, request):
|
2781
|
+
http_info = {
|
2782
|
+
"method": "DELETE",
|
2783
|
+
"resource_path": "/v1/job/{job_id}/delete",
|
2784
|
+
"request_type": request.__class__.__name__,
|
2785
|
+
"response_type": "DeleteTheJobResponse"
|
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
|
+
if 'job_id' in local_var_params:
|
2796
|
+
path_params['job_id'] = local_var_params['job_id']
|
2797
|
+
|
2798
|
+
query_params = []
|
2799
|
+
|
2800
|
+
header_params = {}
|
2801
|
+
|
2802
|
+
form_params = {}
|
2803
|
+
|
2804
|
+
body = None
|
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 disable_the_job(self, request):
|
2827
|
+
r"""禁用任务
|
2828
|
+
|
2829
|
+
禁用任务
|
2830
|
+
|
2831
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2832
|
+
|
2833
|
+
:param request: Request instance for DisableTheJob
|
2834
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.DisableTheJobRequest`
|
2835
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DisableTheJobResponse`
|
2836
|
+
"""
|
2837
|
+
http_info = self._disable_the_job_http_info(request)
|
2838
|
+
return self._call_api(**http_info)
|
2839
|
+
|
2840
|
+
def disable_the_job_invoker(self, request):
|
2841
|
+
http_info = self._disable_the_job_http_info(request)
|
2842
|
+
return SyncInvoker(self, http_info)
|
2843
|
+
|
2844
|
+
@classmethod
|
2845
|
+
def _disable_the_job_http_info(cls, request):
|
2846
|
+
http_info = {
|
2847
|
+
"method": "POST",
|
2848
|
+
"resource_path": "/v1/job/{job_id}/disable",
|
2849
|
+
"request_type": request.__class__.__name__,
|
2850
|
+
"response_type": "DisableTheJobResponse"
|
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 'body' in local_var_params:
|
2871
|
+
body = local_var_params['body']
|
2872
|
+
if isinstance(request, SdkStreamRequest):
|
2873
|
+
body = request.get_file_stream()
|
2874
|
+
|
2875
|
+
response_headers = []
|
2876
|
+
|
2877
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2878
|
+
['application/json'])
|
2879
|
+
|
2880
|
+
auth_settings = ['apig-auth-iam']
|
2881
|
+
|
2882
|
+
http_info["cname"] = cname
|
2883
|
+
http_info["collection_formats"] = collection_formats
|
2884
|
+
http_info["path_params"] = path_params
|
2885
|
+
http_info["query_params"] = query_params
|
2886
|
+
http_info["header_params"] = header_params
|
2887
|
+
http_info["post_params"] = form_params
|
2888
|
+
http_info["body"] = body
|
2889
|
+
http_info["response_headers"] = response_headers
|
2890
|
+
|
2891
|
+
return http_info
|
2892
|
+
|
2893
|
+
def execute_job(self, request):
|
2894
|
+
r"""执行构建
|
2895
|
+
|
2896
|
+
执行构建任务
|
2897
|
+
|
2898
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2899
|
+
|
2900
|
+
:param request: Request instance for ExecuteJob
|
2901
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ExecuteJobRequest`
|
2902
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ExecuteJobResponse`
|
2903
|
+
"""
|
2904
|
+
http_info = self._execute_job_http_info(request)
|
2905
|
+
return self._call_api(**http_info)
|
2906
|
+
|
2907
|
+
def execute_job_invoker(self, request):
|
2908
|
+
http_info = self._execute_job_http_info(request)
|
2909
|
+
return SyncInvoker(self, http_info)
|
2910
|
+
|
2911
|
+
@classmethod
|
2912
|
+
def _execute_job_http_info(cls, request):
|
2913
|
+
http_info = {
|
2914
|
+
"method": "POST",
|
2915
|
+
"resource_path": "/v1/job/execute",
|
2916
|
+
"request_type": request.__class__.__name__,
|
2917
|
+
"response_type": "ExecuteJobResponse"
|
2918
|
+
}
|
2919
|
+
|
2920
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2921
|
+
|
2922
|
+
cname = None
|
2923
|
+
|
2924
|
+
collection_formats = {}
|
2925
|
+
|
2926
|
+
path_params = {}
|
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
|
+
|
2503
2958
|
def list_build_parameter(self, request):
|
2504
2959
|
r"""详情页获取构建参数
|
2505
2960
|
|
@@ -2668,24 +3123,162 @@ class CodeArtsBuildClient(Client):
|
|
2668
3123
|
path_params['project_id'] = local_var_params['project_id']
|
2669
3124
|
|
2670
3125
|
query_params = []
|
2671
|
-
if 'page_index' in local_var_params:
|
2672
|
-
query_params.append(('page_index', local_var_params['page_index']))
|
3126
|
+
if 'page_index' in local_var_params:
|
3127
|
+
query_params.append(('page_index', local_var_params['page_index']))
|
3128
|
+
if 'page_size' in local_var_params:
|
3129
|
+
query_params.append(('page_size', local_var_params['page_size']))
|
3130
|
+
if 'search' in local_var_params:
|
3131
|
+
query_params.append(('search', local_var_params['search']))
|
3132
|
+
if 'sort_field' in local_var_params:
|
3133
|
+
query_params.append(('sort_field', local_var_params['sort_field']))
|
3134
|
+
if 'sort_order' in local_var_params:
|
3135
|
+
query_params.append(('sort_order', local_var_params['sort_order']))
|
3136
|
+
if 'creator_id' in local_var_params:
|
3137
|
+
query_params.append(('creator_id', local_var_params['creator_id']))
|
3138
|
+
if 'build_status' in local_var_params:
|
3139
|
+
query_params.append(('build_status', local_var_params['build_status']))
|
3140
|
+
if 'by_group' in local_var_params:
|
3141
|
+
query_params.append(('by_group', local_var_params['by_group']))
|
3142
|
+
if 'group_path_id' in local_var_params:
|
3143
|
+
query_params.append(('group_path_id', local_var_params['group_path_id']))
|
3144
|
+
|
3145
|
+
header_params = {}
|
3146
|
+
|
3147
|
+
form_params = {}
|
3148
|
+
|
3149
|
+
body = None
|
3150
|
+
if isinstance(request, SdkStreamRequest):
|
3151
|
+
body = request.get_file_stream()
|
3152
|
+
|
3153
|
+
response_headers = []
|
3154
|
+
|
3155
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3156
|
+
['application/json'])
|
3157
|
+
|
3158
|
+
auth_settings = ['apig-auth-iam']
|
3159
|
+
|
3160
|
+
http_info["cname"] = cname
|
3161
|
+
http_info["collection_formats"] = collection_formats
|
3162
|
+
http_info["path_params"] = path_params
|
3163
|
+
http_info["query_params"] = query_params
|
3164
|
+
http_info["header_params"] = header_params
|
3165
|
+
http_info["post_params"] = form_params
|
3166
|
+
http_info["body"] = body
|
3167
|
+
http_info["response_headers"] = response_headers
|
3168
|
+
|
3169
|
+
return http_info
|
3170
|
+
|
3171
|
+
def list_recycling_job(self, request):
|
3172
|
+
r"""查看回收站中删除的构建任务列表
|
3173
|
+
|
3174
|
+
查看回收站中删除的构建任务列表
|
3175
|
+
|
3176
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3177
|
+
|
3178
|
+
:param request: Request instance for ListRecyclingJob
|
3179
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecyclingJobRequest`
|
3180
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecyclingJobResponse`
|
3181
|
+
"""
|
3182
|
+
http_info = self._list_recycling_job_http_info(request)
|
3183
|
+
return self._call_api(**http_info)
|
3184
|
+
|
3185
|
+
def list_recycling_job_invoker(self, request):
|
3186
|
+
http_info = self._list_recycling_job_http_info(request)
|
3187
|
+
return SyncInvoker(self, http_info)
|
3188
|
+
|
3189
|
+
@classmethod
|
3190
|
+
def _list_recycling_job_http_info(cls, request):
|
3191
|
+
http_info = {
|
3192
|
+
"method": "GET",
|
3193
|
+
"resource_path": "/v1/job/recycling-jobs",
|
3194
|
+
"request_type": request.__class__.__name__,
|
3195
|
+
"response_type": "ListRecyclingJobResponse"
|
3196
|
+
}
|
3197
|
+
|
3198
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3199
|
+
|
3200
|
+
cname = None
|
3201
|
+
|
3202
|
+
collection_formats = {}
|
3203
|
+
|
3204
|
+
path_params = {}
|
3205
|
+
|
3206
|
+
query_params = []
|
3207
|
+
if 'page_size' in local_var_params:
|
3208
|
+
query_params.append(('page_size', local_var_params['page_size']))
|
3209
|
+
if 'page_no' in local_var_params:
|
3210
|
+
query_params.append(('page_no', local_var_params['page_no']))
|
3211
|
+
if 'search' in local_var_params:
|
3212
|
+
query_params.append(('search', local_var_params['search']))
|
3213
|
+
|
3214
|
+
header_params = {}
|
3215
|
+
|
3216
|
+
form_params = {}
|
3217
|
+
|
3218
|
+
body = None
|
3219
|
+
if isinstance(request, SdkStreamRequest):
|
3220
|
+
body = request.get_file_stream()
|
3221
|
+
|
3222
|
+
response_headers = []
|
3223
|
+
|
3224
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3225
|
+
['application/json'])
|
3226
|
+
|
3227
|
+
auth_settings = ['apig-auth-iam']
|
3228
|
+
|
3229
|
+
http_info["cname"] = cname
|
3230
|
+
http_info["collection_formats"] = collection_formats
|
3231
|
+
http_info["path_params"] = path_params
|
3232
|
+
http_info["query_params"] = query_params
|
3233
|
+
http_info["header_params"] = header_params
|
3234
|
+
http_info["post_params"] = form_params
|
3235
|
+
http_info["body"] = body
|
3236
|
+
http_info["response_headers"] = response_headers
|
3237
|
+
|
3238
|
+
return http_info
|
3239
|
+
|
3240
|
+
def list_update_job_history(self, request):
|
3241
|
+
r"""获取修改历史
|
3242
|
+
|
3243
|
+
获取修改历史
|
3244
|
+
|
3245
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3246
|
+
|
3247
|
+
:param request: Request instance for ListUpdateJobHistory
|
3248
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListUpdateJobHistoryRequest`
|
3249
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListUpdateJobHistoryResponse`
|
3250
|
+
"""
|
3251
|
+
http_info = self._list_update_job_history_http_info(request)
|
3252
|
+
return self._call_api(**http_info)
|
3253
|
+
|
3254
|
+
def list_update_job_history_invoker(self, request):
|
3255
|
+
http_info = self._list_update_job_history_http_info(request)
|
3256
|
+
return SyncInvoker(self, http_info)
|
3257
|
+
|
3258
|
+
@classmethod
|
3259
|
+
def _list_update_job_history_http_info(cls, request):
|
3260
|
+
http_info = {
|
3261
|
+
"method": "GET",
|
3262
|
+
"resource_path": "/v1/job/{job_id}/history",
|
3263
|
+
"request_type": request.__class__.__name__,
|
3264
|
+
"response_type": "ListUpdateJobHistoryResponse"
|
3265
|
+
}
|
3266
|
+
|
3267
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3268
|
+
|
3269
|
+
cname = None
|
3270
|
+
|
3271
|
+
collection_formats = {}
|
3272
|
+
|
3273
|
+
path_params = {}
|
3274
|
+
if 'job_id' in local_var_params:
|
3275
|
+
path_params['job_id'] = local_var_params['job_id']
|
3276
|
+
|
3277
|
+
query_params = []
|
3278
|
+
if 'page_no' in local_var_params:
|
3279
|
+
query_params.append(('page_no', local_var_params['page_no']))
|
2673
3280
|
if 'page_size' in local_var_params:
|
2674
3281
|
query_params.append(('page_size', local_var_params['page_size']))
|
2675
|
-
if 'search' in local_var_params:
|
2676
|
-
query_params.append(('search', local_var_params['search']))
|
2677
|
-
if 'sort_field' in local_var_params:
|
2678
|
-
query_params.append(('sort_field', local_var_params['sort_field']))
|
2679
|
-
if 'sort_order' in local_var_params:
|
2680
|
-
query_params.append(('sort_order', local_var_params['sort_order']))
|
2681
|
-
if 'creator_id' in local_var_params:
|
2682
|
-
query_params.append(('creator_id', local_var_params['creator_id']))
|
2683
|
-
if 'build_status' in local_var_params:
|
2684
|
-
query_params.append(('build_status', local_var_params['build_status']))
|
2685
|
-
if 'by_group' in local_var_params:
|
2686
|
-
query_params.append(('by_group', local_var_params['by_group']))
|
2687
|
-
if 'group_path_id' in local_var_params:
|
2688
|
-
query_params.append(('group_path_id', local_var_params['group_path_id']))
|
2689
3282
|
|
2690
3283
|
header_params = {}
|
2691
3284
|
|
@@ -2713,31 +3306,31 @@ class CodeArtsBuildClient(Client):
|
|
2713
3306
|
|
2714
3307
|
return http_info
|
2715
3308
|
|
2716
|
-
def
|
2717
|
-
r"""
|
3309
|
+
def restore_recycling_jobs(self, request):
|
3310
|
+
r"""恢复回收站中的任务
|
2718
3311
|
|
2719
|
-
|
3312
|
+
恢复回收站中的任务
|
2720
3313
|
|
2721
3314
|
Please refer to HUAWEI cloud API Explorer for details.
|
2722
3315
|
|
2723
|
-
:param request: Request instance for
|
2724
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2725
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3316
|
+
:param request: Request instance for RestoreRecyclingJobs
|
3317
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.RestoreRecyclingJobsRequest`
|
3318
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.RestoreRecyclingJobsResponse`
|
2726
3319
|
"""
|
2727
|
-
http_info = self.
|
3320
|
+
http_info = self._restore_recycling_jobs_http_info(request)
|
2728
3321
|
return self._call_api(**http_info)
|
2729
3322
|
|
2730
|
-
def
|
2731
|
-
http_info = self.
|
3323
|
+
def restore_recycling_jobs_invoker(self, request):
|
3324
|
+
http_info = self._restore_recycling_jobs_http_info(request)
|
2732
3325
|
return SyncInvoker(self, http_info)
|
2733
3326
|
|
2734
3327
|
@classmethod
|
2735
|
-
def
|
3328
|
+
def _restore_recycling_jobs_http_info(cls, request):
|
2736
3329
|
http_info = {
|
2737
|
-
"method": "
|
2738
|
-
"resource_path": "/v1/job/recycling-
|
3330
|
+
"method": "POST",
|
3331
|
+
"resource_path": "/v1/job/recycling-restoration",
|
2739
3332
|
"request_type": request.__class__.__name__,
|
2740
|
-
"response_type": "
|
3333
|
+
"response_type": "RestoreRecyclingJobsResponse"
|
2741
3334
|
}
|
2742
3335
|
|
2743
3336
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -2749,18 +3342,14 @@ class CodeArtsBuildClient(Client):
|
|
2749
3342
|
path_params = {}
|
2750
3343
|
|
2751
3344
|
query_params = []
|
2752
|
-
if 'page_size' in local_var_params:
|
2753
|
-
query_params.append(('page_size', local_var_params['page_size']))
|
2754
|
-
if 'page_no' in local_var_params:
|
2755
|
-
query_params.append(('page_no', local_var_params['page_no']))
|
2756
|
-
if 'search' in local_var_params:
|
2757
|
-
query_params.append(('search', local_var_params['search']))
|
2758
3345
|
|
2759
3346
|
header_params = {}
|
2760
3347
|
|
2761
3348
|
form_params = {}
|
2762
3349
|
|
2763
3350
|
body = None
|
3351
|
+
if 'body' in local_var_params:
|
3352
|
+
body = local_var_params['body']
|
2764
3353
|
if isinstance(request, SdkStreamRequest):
|
2765
3354
|
body = request.get_file_stream()
|
2766
3355
|
|
@@ -2782,31 +3371,31 @@ class CodeArtsBuildClient(Client):
|
|
2782
3371
|
|
2783
3372
|
return http_info
|
2784
3373
|
|
2785
|
-
def
|
2786
|
-
r"""
|
3374
|
+
def set_keep_time(self, request):
|
3375
|
+
r"""设置回收站中的任务保留时间
|
2787
3376
|
|
2788
|
-
|
3377
|
+
设置回收站中的任务保留时间,该接口需要租户账号才能访问,租户子账号无权限访问。
|
2789
3378
|
|
2790
3379
|
Please refer to HUAWEI cloud API Explorer for details.
|
2791
3380
|
|
2792
|
-
:param request: Request instance for
|
2793
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2794
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3381
|
+
:param request: Request instance for SetKeepTime
|
3382
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.SetKeepTimeRequest`
|
3383
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.SetKeepTimeResponse`
|
2795
3384
|
"""
|
2796
|
-
http_info = self.
|
3385
|
+
http_info = self._set_keep_time_http_info(request)
|
2797
3386
|
return self._call_api(**http_info)
|
2798
3387
|
|
2799
|
-
def
|
2800
|
-
http_info = self.
|
3388
|
+
def set_keep_time_invoker(self, request):
|
3389
|
+
http_info = self._set_keep_time_http_info(request)
|
2801
3390
|
return SyncInvoker(self, http_info)
|
2802
3391
|
|
2803
3392
|
@classmethod
|
2804
|
-
def
|
3393
|
+
def _set_keep_time_http_info(cls, request):
|
2805
3394
|
http_info = {
|
2806
|
-
"method": "
|
2807
|
-
"resource_path": "/v1/job/
|
3395
|
+
"method": "POST",
|
3396
|
+
"resource_path": "/v1/job/keep-time",
|
2808
3397
|
"request_type": request.__class__.__name__,
|
2809
|
-
"response_type": "
|
3398
|
+
"response_type": "SetKeepTimeResponse"
|
2810
3399
|
}
|
2811
3400
|
|
2812
3401
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -2816,20 +3405,16 @@ class CodeArtsBuildClient(Client):
|
|
2816
3405
|
collection_formats = {}
|
2817
3406
|
|
2818
3407
|
path_params = {}
|
2819
|
-
if 'job_id' in local_var_params:
|
2820
|
-
path_params['job_id'] = local_var_params['job_id']
|
2821
3408
|
|
2822
3409
|
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']))
|
2827
3410
|
|
2828
3411
|
header_params = {}
|
2829
3412
|
|
2830
3413
|
form_params = {}
|
2831
3414
|
|
2832
3415
|
body = None
|
3416
|
+
if 'body' in local_var_params:
|
3417
|
+
body = local_var_params['body']
|
2833
3418
|
if isinstance(request, SdkStreamRequest):
|
2834
3419
|
body = request.get_file_stream()
|
2835
3420
|
|
@@ -3394,12 +3979,209 @@ class CodeArtsBuildClient(Client):
|
|
3394
3979
|
return SyncInvoker(self, http_info)
|
3395
3980
|
|
3396
3981
|
@classmethod
|
3397
|
-
def _show_job_notice_config_info_http_info(cls, request):
|
3982
|
+
def _show_job_notice_config_info_http_info(cls, request):
|
3983
|
+
http_info = {
|
3984
|
+
"method": "GET",
|
3985
|
+
"resource_path": "/v1/job/{job_id}/notice",
|
3986
|
+
"request_type": request.__class__.__name__,
|
3987
|
+
"response_type": "ShowJobNoticeConfigInfoResponse"
|
3988
|
+
}
|
3989
|
+
|
3990
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3991
|
+
|
3992
|
+
cname = None
|
3993
|
+
|
3994
|
+
collection_formats = {}
|
3995
|
+
|
3996
|
+
path_params = {}
|
3997
|
+
if 'job_id' in local_var_params:
|
3998
|
+
path_params['job_id'] = local_var_params['job_id']
|
3999
|
+
|
4000
|
+
query_params = []
|
4001
|
+
|
4002
|
+
header_params = {}
|
4003
|
+
|
4004
|
+
form_params = {}
|
4005
|
+
|
4006
|
+
body = None
|
4007
|
+
if isinstance(request, SdkStreamRequest):
|
4008
|
+
body = request.get_file_stream()
|
4009
|
+
|
4010
|
+
response_headers = []
|
4011
|
+
|
4012
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4013
|
+
['application/json'])
|
4014
|
+
|
4015
|
+
auth_settings = ['apig-auth-iam']
|
4016
|
+
|
4017
|
+
http_info["cname"] = cname
|
4018
|
+
http_info["collection_formats"] = collection_formats
|
4019
|
+
http_info["path_params"] = path_params
|
4020
|
+
http_info["query_params"] = query_params
|
4021
|
+
http_info["header_params"] = header_params
|
4022
|
+
http_info["post_params"] = form_params
|
4023
|
+
http_info["body"] = body
|
4024
|
+
http_info["response_headers"] = response_headers
|
4025
|
+
|
4026
|
+
return http_info
|
4027
|
+
|
4028
|
+
def show_job_role_permission(self, request):
|
4029
|
+
r"""获取构建任务的角色权限矩阵信息
|
4030
|
+
|
4031
|
+
获取构建任务的角色权限矩阵信息
|
4032
|
+
|
4033
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4034
|
+
|
4035
|
+
:param request: Request instance for ShowJobRolePermission
|
4036
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobRolePermissionRequest`
|
4037
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobRolePermissionResponse`
|
4038
|
+
"""
|
4039
|
+
http_info = self._show_job_role_permission_http_info(request)
|
4040
|
+
return self._call_api(**http_info)
|
4041
|
+
|
4042
|
+
def show_job_role_permission_invoker(self, request):
|
4043
|
+
http_info = self._show_job_role_permission_http_info(request)
|
4044
|
+
return SyncInvoker(self, http_info)
|
4045
|
+
|
4046
|
+
@classmethod
|
4047
|
+
def _show_job_role_permission_http_info(cls, request):
|
4048
|
+
http_info = {
|
4049
|
+
"method": "GET",
|
4050
|
+
"resource_path": "/v1/job/permission/role",
|
4051
|
+
"request_type": request.__class__.__name__,
|
4052
|
+
"response_type": "ShowJobRolePermissionResponse"
|
4053
|
+
}
|
4054
|
+
|
4055
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4056
|
+
|
4057
|
+
cname = None
|
4058
|
+
|
4059
|
+
collection_formats = {}
|
4060
|
+
|
4061
|
+
path_params = {}
|
4062
|
+
|
4063
|
+
query_params = []
|
4064
|
+
if 'job_id' in local_var_params:
|
4065
|
+
query_params.append(('job_id', local_var_params['job_id']))
|
4066
|
+
|
4067
|
+
header_params = {}
|
4068
|
+
|
4069
|
+
form_params = {}
|
4070
|
+
|
4071
|
+
body = None
|
4072
|
+
if isinstance(request, SdkStreamRequest):
|
4073
|
+
body = request.get_file_stream()
|
4074
|
+
|
4075
|
+
response_headers = []
|
4076
|
+
|
4077
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4078
|
+
['application/json'])
|
4079
|
+
|
4080
|
+
auth_settings = ['apig-auth-iam']
|
4081
|
+
|
4082
|
+
http_info["cname"] = cname
|
4083
|
+
http_info["collection_formats"] = collection_formats
|
4084
|
+
http_info["path_params"] = path_params
|
4085
|
+
http_info["query_params"] = query_params
|
4086
|
+
http_info["header_params"] = header_params
|
4087
|
+
http_info["post_params"] = form_params
|
4088
|
+
http_info["body"] = body
|
4089
|
+
http_info["response_headers"] = response_headers
|
4090
|
+
|
4091
|
+
return http_info
|
4092
|
+
|
4093
|
+
def show_job_step_status(self, request):
|
4094
|
+
r"""查询任务状态
|
4095
|
+
|
4096
|
+
查询任务状态
|
4097
|
+
|
4098
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4099
|
+
|
4100
|
+
:param request: Request instance for ShowJobStepStatus
|
4101
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobStepStatusRequest`
|
4102
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobStepStatusResponse`
|
4103
|
+
"""
|
4104
|
+
http_info = self._show_job_step_status_http_info(request)
|
4105
|
+
return self._call_api(**http_info)
|
4106
|
+
|
4107
|
+
def show_job_step_status_invoker(self, request):
|
4108
|
+
http_info = self._show_job_step_status_http_info(request)
|
4109
|
+
return SyncInvoker(self, http_info)
|
4110
|
+
|
4111
|
+
@classmethod
|
4112
|
+
def _show_job_step_status_http_info(cls, request):
|
4113
|
+
http_info = {
|
4114
|
+
"method": "GET",
|
4115
|
+
"resource_path": "/v1/job/{job_id}/status",
|
4116
|
+
"request_type": request.__class__.__name__,
|
4117
|
+
"response_type": "ShowJobStepStatusResponse"
|
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
|
+
if 'job_id' in local_var_params:
|
4128
|
+
path_params['job_id'] = local_var_params['job_id']
|
4129
|
+
|
4130
|
+
query_params = []
|
4131
|
+
if 'build_no' in local_var_params:
|
4132
|
+
query_params.append(('build_no', local_var_params['build_no']))
|
4133
|
+
|
4134
|
+
header_params = {}
|
4135
|
+
|
4136
|
+
form_params = {}
|
4137
|
+
|
4138
|
+
body = None
|
4139
|
+
if isinstance(request, SdkStreamRequest):
|
4140
|
+
body = request.get_file_stream()
|
4141
|
+
|
4142
|
+
response_headers = []
|
4143
|
+
|
4144
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4145
|
+
['application/json'])
|
4146
|
+
|
4147
|
+
auth_settings = ['apig-auth-iam']
|
4148
|
+
|
4149
|
+
http_info["cname"] = cname
|
4150
|
+
http_info["collection_formats"] = collection_formats
|
4151
|
+
http_info["path_params"] = path_params
|
4152
|
+
http_info["query_params"] = query_params
|
4153
|
+
http_info["header_params"] = header_params
|
4154
|
+
http_info["post_params"] = form_params
|
4155
|
+
http_info["body"] = body
|
4156
|
+
http_info["response_headers"] = response_headers
|
4157
|
+
|
4158
|
+
return http_info
|
4159
|
+
|
4160
|
+
def show_job_system_parameters(self, request):
|
4161
|
+
r"""查看系统预定义参数
|
4162
|
+
|
4163
|
+
查看系统预定义参数
|
4164
|
+
|
4165
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4166
|
+
|
4167
|
+
:param request: Request instance for ShowJobSystemParameters
|
4168
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSystemParametersRequest`
|
4169
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSystemParametersResponse`
|
4170
|
+
"""
|
4171
|
+
http_info = self._show_job_system_parameters_http_info(request)
|
4172
|
+
return self._call_api(**http_info)
|
4173
|
+
|
4174
|
+
def show_job_system_parameters_invoker(self, request):
|
4175
|
+
http_info = self._show_job_system_parameters_http_info(request)
|
4176
|
+
return SyncInvoker(self, http_info)
|
4177
|
+
|
4178
|
+
@classmethod
|
4179
|
+
def _show_job_system_parameters_http_info(cls, request):
|
3398
4180
|
http_info = {
|
3399
4181
|
"method": "GET",
|
3400
|
-
"resource_path": "/v1/job/
|
4182
|
+
"resource_path": "/v1/job/system-parameters",
|
3401
4183
|
"request_type": request.__class__.__name__,
|
3402
|
-
"response_type": "
|
4184
|
+
"response_type": "ShowJobSystemParametersResponse"
|
3403
4185
|
}
|
3404
4186
|
|
3405
4187
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -3409,8 +4191,6 @@ class CodeArtsBuildClient(Client):
|
|
3409
4191
|
collection_formats = {}
|
3410
4192
|
|
3411
4193
|
path_params = {}
|
3412
|
-
if 'job_id' in local_var_params:
|
3413
|
-
path_params['job_id'] = local_var_params['job_id']
|
3414
4194
|
|
3415
4195
|
query_params = []
|
3416
4196
|
|
@@ -3440,31 +4220,31 @@ class CodeArtsBuildClient(Client):
|
|
3440
4220
|
|
3441
4221
|
return http_info
|
3442
4222
|
|
3443
|
-
def
|
3444
|
-
r"""
|
4223
|
+
def show_running_status(self, request):
|
4224
|
+
r"""查看任务是否在构建
|
3445
4225
|
|
3446
|
-
|
4226
|
+
查看任务是否在构建
|
3447
4227
|
|
3448
4228
|
Please refer to HUAWEI cloud API Explorer for details.
|
3449
4229
|
|
3450
|
-
:param request: Request instance for
|
3451
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3452
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4230
|
+
:param request: Request instance for ShowRunningStatus
|
4231
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRunningStatusRequest`
|
4232
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRunningStatusResponse`
|
3453
4233
|
"""
|
3454
|
-
http_info = self.
|
4234
|
+
http_info = self._show_running_status_http_info(request)
|
3455
4235
|
return self._call_api(**http_info)
|
3456
4236
|
|
3457
|
-
def
|
3458
|
-
http_info = self.
|
4237
|
+
def show_running_status_invoker(self, request):
|
4238
|
+
http_info = self._show_running_status_http_info(request)
|
3459
4239
|
return SyncInvoker(self, http_info)
|
3460
4240
|
|
3461
4241
|
@classmethod
|
3462
|
-
def
|
4242
|
+
def _show_running_status_http_info(cls, request):
|
3463
4243
|
http_info = {
|
3464
4244
|
"method": "GET",
|
3465
|
-
"resource_path": "/v1/job/
|
4245
|
+
"resource_path": "/v1/job/{job_id}/running-status",
|
3466
4246
|
"request_type": request.__class__.__name__,
|
3467
|
-
"response_type": "
|
4247
|
+
"response_type": "ShowRunningStatusResponse"
|
3468
4248
|
}
|
3469
4249
|
|
3470
4250
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -3474,10 +4254,10 @@ class CodeArtsBuildClient(Client):
|
|
3474
4254
|
collection_formats = {}
|
3475
4255
|
|
3476
4256
|
path_params = {}
|
4257
|
+
if 'job_id' in local_var_params:
|
4258
|
+
path_params['job_id'] = local_var_params['job_id']
|
3477
4259
|
|
3478
4260
|
query_params = []
|
3479
|
-
if 'job_id' in local_var_params:
|
3480
|
-
query_params.append(('job_id', local_var_params['job_id']))
|
3481
4261
|
|
3482
4262
|
header_params = {}
|
3483
4263
|
|
@@ -3505,31 +4285,31 @@ class CodeArtsBuildClient(Client):
|
|
3505
4285
|
|
3506
4286
|
return http_info
|
3507
4287
|
|
3508
|
-
def
|
3509
|
-
r"""
|
4288
|
+
def update_new_job(self, request):
|
4289
|
+
r"""更新构建任务
|
3510
4290
|
|
3511
|
-
|
4291
|
+
更新构建任务
|
3512
4292
|
|
3513
4293
|
Please refer to HUAWEI cloud API Explorer for details.
|
3514
4294
|
|
3515
|
-
:param request: Request instance for
|
3516
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3517
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4295
|
+
:param request: Request instance for UpdateNewJob
|
4296
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateNewJobRequest`
|
4297
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateNewJobResponse`
|
3518
4298
|
"""
|
3519
|
-
http_info = self.
|
4299
|
+
http_info = self._update_new_job_http_info(request)
|
3520
4300
|
return self._call_api(**http_info)
|
3521
4301
|
|
3522
|
-
def
|
3523
|
-
http_info = self.
|
4302
|
+
def update_new_job_invoker(self, request):
|
4303
|
+
http_info = self._update_new_job_http_info(request)
|
3524
4304
|
return SyncInvoker(self, http_info)
|
3525
4305
|
|
3526
4306
|
@classmethod
|
3527
|
-
def
|
4307
|
+
def _update_new_job_http_info(cls, request):
|
3528
4308
|
http_info = {
|
3529
|
-
"method": "
|
3530
|
-
"resource_path": "/v1/job/
|
4309
|
+
"method": "POST",
|
4310
|
+
"resource_path": "/v1/job/update",
|
3531
4311
|
"request_type": request.__class__.__name__,
|
3532
|
-
"response_type": "
|
4312
|
+
"response_type": "UpdateNewJobResponse"
|
3533
4313
|
}
|
3534
4314
|
|
3535
4315
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -3539,18 +4319,16 @@ class CodeArtsBuildClient(Client):
|
|
3539
4319
|
collection_formats = {}
|
3540
4320
|
|
3541
4321
|
path_params = {}
|
3542
|
-
if 'job_id' in local_var_params:
|
3543
|
-
path_params['job_id'] = local_var_params['job_id']
|
3544
4322
|
|
3545
4323
|
query_params = []
|
3546
|
-
if 'build_no' in local_var_params:
|
3547
|
-
query_params.append(('build_no', local_var_params['build_no']))
|
3548
4324
|
|
3549
4325
|
header_params = {}
|
3550
4326
|
|
3551
4327
|
form_params = {}
|
3552
4328
|
|
3553
4329
|
body = None
|
4330
|
+
if 'body' in local_var_params:
|
4331
|
+
body = local_var_params['body']
|
3554
4332
|
if isinstance(request, SdkStreamRequest):
|
3555
4333
|
body = request.get_file_stream()
|
3556
4334
|
|
@@ -3572,31 +4350,31 @@ class CodeArtsBuildClient(Client):
|
|
3572
4350
|
|
3573
4351
|
return http_info
|
3574
4352
|
|
3575
|
-
def
|
3576
|
-
r"""
|
4353
|
+
def delete_keystore(self, request):
|
4354
|
+
r"""删除文件管理文件
|
3577
4355
|
|
3578
|
-
|
4356
|
+
删除文件管理文件
|
3579
4357
|
|
3580
4358
|
Please refer to HUAWEI cloud API Explorer for details.
|
3581
4359
|
|
3582
|
-
:param request: Request instance for
|
3583
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3584
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4360
|
+
:param request: Request instance for DeleteKeystore
|
4361
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteKeystoreRequest`
|
4362
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteKeystoreResponse`
|
3585
4363
|
"""
|
3586
|
-
http_info = self.
|
4364
|
+
http_info = self._delete_keystore_http_info(request)
|
3587
4365
|
return self._call_api(**http_info)
|
3588
4366
|
|
3589
|
-
def
|
3590
|
-
http_info = self.
|
4367
|
+
def delete_keystore_invoker(self, request):
|
4368
|
+
http_info = self._delete_keystore_http_info(request)
|
3591
4369
|
return SyncInvoker(self, http_info)
|
3592
4370
|
|
3593
4371
|
@classmethod
|
3594
|
-
def
|
4372
|
+
def _delete_keystore_http_info(cls, request):
|
3595
4373
|
http_info = {
|
3596
|
-
"method": "
|
3597
|
-
"resource_path": "/
|
4374
|
+
"method": "DELETE",
|
4375
|
+
"resource_path": "/v2/keystore/{keystore_id}/delete",
|
3598
4376
|
"request_type": request.__class__.__name__,
|
3599
|
-
"response_type": "
|
4377
|
+
"response_type": "DeleteKeystoreResponse"
|
3600
4378
|
}
|
3601
4379
|
|
3602
4380
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -3606,6 +4384,8 @@ class CodeArtsBuildClient(Client):
|
|
3606
4384
|
collection_formats = {}
|
3607
4385
|
|
3608
4386
|
path_params = {}
|
4387
|
+
if 'keystore_id' in local_var_params:
|
4388
|
+
path_params['keystore_id'] = local_var_params['keystore_id']
|
3609
4389
|
|
3610
4390
|
query_params = []
|
3611
4391
|
|
@@ -3635,31 +4415,31 @@ class CodeArtsBuildClient(Client):
|
|
3635
4415
|
|
3636
4416
|
return http_info
|
3637
4417
|
|
3638
|
-
def
|
3639
|
-
r"""
|
4418
|
+
def delete_keystore_permission(self, request):
|
4419
|
+
r"""文件管理删除权限
|
3640
4420
|
|
3641
|
-
|
4421
|
+
文件管理删除权限
|
3642
4422
|
|
3643
4423
|
Please refer to HUAWEI cloud API Explorer for details.
|
3644
4424
|
|
3645
|
-
:param request: Request instance for
|
3646
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3647
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4425
|
+
:param request: Request instance for DeleteKeystorePermission
|
4426
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteKeystorePermissionRequest`
|
4427
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteKeystorePermissionResponse`
|
3648
4428
|
"""
|
3649
|
-
http_info = self.
|
4429
|
+
http_info = self._delete_keystore_permission_http_info(request)
|
3650
4430
|
return self._call_api(**http_info)
|
3651
4431
|
|
3652
|
-
def
|
3653
|
-
http_info = self.
|
4432
|
+
def delete_keystore_permission_invoker(self, request):
|
4433
|
+
http_info = self._delete_keystore_permission_http_info(request)
|
3654
4434
|
return SyncInvoker(self, http_info)
|
3655
4435
|
|
3656
4436
|
@classmethod
|
3657
|
-
def
|
4437
|
+
def _delete_keystore_permission_http_info(cls, request):
|
3658
4438
|
http_info = {
|
3659
|
-
"method": "
|
3660
|
-
"resource_path": "/
|
4439
|
+
"method": "DELETE",
|
4440
|
+
"resource_path": "/v2/keystore/permission/{permission_id}/delete",
|
3661
4441
|
"request_type": request.__class__.__name__,
|
3662
|
-
"response_type": "
|
4442
|
+
"response_type": "DeleteKeystorePermissionResponse"
|
3663
4443
|
}
|
3664
4444
|
|
3665
4445
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -3669,8 +4449,8 @@ class CodeArtsBuildClient(Client):
|
|
3669
4449
|
collection_formats = {}
|
3670
4450
|
|
3671
4451
|
path_params = {}
|
3672
|
-
if '
|
3673
|
-
path_params['
|
4452
|
+
if 'permission_id' in local_var_params:
|
4453
|
+
path_params['permission_id'] = local_var_params['permission_id']
|
3674
4454
|
|
3675
4455
|
query_params = []
|
3676
4456
|
|
@@ -4232,6 +5012,73 @@ class CodeArtsBuildClient(Client):
|
|
4232
5012
|
|
4233
5013
|
return http_info
|
4234
5014
|
|
5015
|
+
def list_brief_record(self, request):
|
5016
|
+
r"""获取指定工程的简要构建信息
|
5017
|
+
|
5018
|
+
获取指定工程的简要构建信息
|
5019
|
+
|
5020
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
5021
|
+
|
5022
|
+
:param request: Request instance for ListBriefRecord
|
5023
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListBriefRecordRequest`
|
5024
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListBriefRecordResponse`
|
5025
|
+
"""
|
5026
|
+
http_info = self._list_brief_record_http_info(request)
|
5027
|
+
return self._call_api(**http_info)
|
5028
|
+
|
5029
|
+
def list_brief_record_invoker(self, request):
|
5030
|
+
http_info = self._list_brief_record_http_info(request)
|
5031
|
+
return SyncInvoker(self, http_info)
|
5032
|
+
|
5033
|
+
@classmethod
|
5034
|
+
def _list_brief_record_http_info(cls, request):
|
5035
|
+
http_info = {
|
5036
|
+
"method": "POST",
|
5037
|
+
"resource_path": "/v1/record/brief",
|
5038
|
+
"request_type": request.__class__.__name__,
|
5039
|
+
"response_type": "ListBriefRecordResponse"
|
5040
|
+
}
|
5041
|
+
|
5042
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
5043
|
+
|
5044
|
+
cname = None
|
5045
|
+
|
5046
|
+
collection_formats = {}
|
5047
|
+
|
5048
|
+
path_params = {}
|
5049
|
+
|
5050
|
+
query_params = []
|
5051
|
+
if 'limit' in local_var_params:
|
5052
|
+
query_params.append(('limit', local_var_params['limit']))
|
5053
|
+
|
5054
|
+
header_params = {}
|
5055
|
+
|
5056
|
+
form_params = {}
|
5057
|
+
|
5058
|
+
body = None
|
5059
|
+
if 'body' in local_var_params:
|
5060
|
+
body = local_var_params['body']
|
5061
|
+
if isinstance(request, SdkStreamRequest):
|
5062
|
+
body = request.get_file_stream()
|
5063
|
+
|
5064
|
+
response_headers = []
|
5065
|
+
|
5066
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
5067
|
+
['application/json'])
|
5068
|
+
|
5069
|
+
auth_settings = ['apig-auth-iam']
|
5070
|
+
|
5071
|
+
http_info["cname"] = cname
|
5072
|
+
http_info["collection_formats"] = collection_formats
|
5073
|
+
http_info["path_params"] = path_params
|
5074
|
+
http_info["query_params"] = query_params
|
5075
|
+
http_info["header_params"] = header_params
|
5076
|
+
http_info["post_params"] = form_params
|
5077
|
+
http_info["body"] = body
|
5078
|
+
http_info["response_headers"] = response_headers
|
5079
|
+
|
5080
|
+
return http_info
|
5081
|
+
|
4235
5082
|
def list_build_info_record_by_job_id(self, request):
|
4236
5083
|
r"""获取任务构建记录列表v1
|
4237
5084
|
|
@@ -5329,6 +6176,71 @@ class CodeArtsBuildClient(Client):
|
|
5329
6176
|
|
5330
6177
|
return http_info
|
5331
6178
|
|
6179
|
+
def delete_template(self, request):
|
6180
|
+
r"""删除构建模板
|
6181
|
+
|
6182
|
+
删除构建模板
|
6183
|
+
|
6184
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
6185
|
+
|
6186
|
+
:param request: Request instance for DeleteTemplate
|
6187
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteTemplateRequest`
|
6188
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteTemplateResponse`
|
6189
|
+
"""
|
6190
|
+
http_info = self._delete_template_http_info(request)
|
6191
|
+
return self._call_api(**http_info)
|
6192
|
+
|
6193
|
+
def delete_template_invoker(self, request):
|
6194
|
+
http_info = self._delete_template_http_info(request)
|
6195
|
+
return SyncInvoker(self, http_info)
|
6196
|
+
|
6197
|
+
@classmethod
|
6198
|
+
def _delete_template_http_info(cls, request):
|
6199
|
+
http_info = {
|
6200
|
+
"method": "DELETE",
|
6201
|
+
"resource_path": "/v1/template/{uuid}/delete",
|
6202
|
+
"request_type": request.__class__.__name__,
|
6203
|
+
"response_type": "DeleteTemplateResponse"
|
6204
|
+
}
|
6205
|
+
|
6206
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
6207
|
+
|
6208
|
+
cname = None
|
6209
|
+
|
6210
|
+
collection_formats = {}
|
6211
|
+
|
6212
|
+
path_params = {}
|
6213
|
+
if 'uuid' in local_var_params:
|
6214
|
+
path_params['uuid'] = local_var_params['uuid']
|
6215
|
+
|
6216
|
+
query_params = []
|
6217
|
+
|
6218
|
+
header_params = {}
|
6219
|
+
|
6220
|
+
form_params = {}
|
6221
|
+
|
6222
|
+
body = None
|
6223
|
+
if isinstance(request, SdkStreamRequest):
|
6224
|
+
body = request.get_file_stream()
|
6225
|
+
|
6226
|
+
response_headers = []
|
6227
|
+
|
6228
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
6229
|
+
['application/json'])
|
6230
|
+
|
6231
|
+
auth_settings = ['apig-auth-iam']
|
6232
|
+
|
6233
|
+
http_info["cname"] = cname
|
6234
|
+
http_info["collection_formats"] = collection_formats
|
6235
|
+
http_info["path_params"] = path_params
|
6236
|
+
http_info["query_params"] = query_params
|
6237
|
+
http_info["header_params"] = header_params
|
6238
|
+
http_info["post_params"] = form_params
|
6239
|
+
http_info["body"] = body
|
6240
|
+
http_info["response_headers"] = response_headers
|
6241
|
+
|
6242
|
+
return http_info
|
6243
|
+
|
5332
6244
|
def list_custom_template(self, request):
|
5333
6245
|
r"""根据条件查询特定模板
|
5334
6246
|
|
@@ -5471,6 +6383,71 @@ class CodeArtsBuildClient(Client):
|
|
5471
6383
|
|
5472
6384
|
return http_info
|
5473
6385
|
|
6386
|
+
def list_recommend_official_template(self, request):
|
6387
|
+
r"""获取官方推荐模板
|
6388
|
+
|
6389
|
+
获取官方推荐模板
|
6390
|
+
|
6391
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
6392
|
+
|
6393
|
+
:param request: Request instance for ListRecommendOfficialTemplate
|
6394
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecommendOfficialTemplateRequest`
|
6395
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecommendOfficialTemplateResponse`
|
6396
|
+
"""
|
6397
|
+
http_info = self._list_recommend_official_template_http_info(request)
|
6398
|
+
return self._call_api(**http_info)
|
6399
|
+
|
6400
|
+
def list_recommend_official_template_invoker(self, request):
|
6401
|
+
http_info = self._list_recommend_official_template_http_info(request)
|
6402
|
+
return SyncInvoker(self, http_info)
|
6403
|
+
|
6404
|
+
@classmethod
|
6405
|
+
def _list_recommend_official_template_http_info(cls, request):
|
6406
|
+
http_info = {
|
6407
|
+
"method": "POST",
|
6408
|
+
"resource_path": "/v1/template/recommend",
|
6409
|
+
"request_type": request.__class__.__name__,
|
6410
|
+
"response_type": "ListRecommendOfficialTemplateResponse"
|
6411
|
+
}
|
6412
|
+
|
6413
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
6414
|
+
|
6415
|
+
cname = None
|
6416
|
+
|
6417
|
+
collection_formats = {}
|
6418
|
+
|
6419
|
+
path_params = {}
|
6420
|
+
|
6421
|
+
query_params = []
|
6422
|
+
|
6423
|
+
header_params = {}
|
6424
|
+
|
6425
|
+
form_params = {}
|
6426
|
+
|
6427
|
+
body = None
|
6428
|
+
if 'body' in local_var_params:
|
6429
|
+
body = local_var_params['body']
|
6430
|
+
if isinstance(request, SdkStreamRequest):
|
6431
|
+
body = request.get_file_stream()
|
6432
|
+
|
6433
|
+
response_headers = []
|
6434
|
+
|
6435
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
6436
|
+
['application/json'])
|
6437
|
+
|
6438
|
+
auth_settings = ['apig-auth-iam']
|
6439
|
+
|
6440
|
+
http_info["cname"] = cname
|
6441
|
+
http_info["collection_formats"] = collection_formats
|
6442
|
+
http_info["path_params"] = path_params
|
6443
|
+
http_info["query_params"] = query_params
|
6444
|
+
http_info["header_params"] = header_params
|
6445
|
+
http_info["post_params"] = form_params
|
6446
|
+
http_info["body"] = body
|
6447
|
+
http_info["response_headers"] = response_headers
|
6448
|
+
|
6449
|
+
return http_info
|
6450
|
+
|
5474
6451
|
def show_yaml_template(self, request):
|
5475
6452
|
r"""获取代码化构建默认模板
|
5476
6453
|
|