huaweicloudsdkcae 3.1.98__py2.py3-none-any.whl → 3.1.100__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.
Potentially problematic release.
This version of huaweicloudsdkcae might be problematic. Click here for more details.
- huaweicloudsdkcae/v1/__init__.py +25 -2
- huaweicloudsdkcae/v1/cae_async_client.py +416 -0
- huaweicloudsdkcae/v1/cae_client.py +416 -0
- huaweicloudsdkcae/v1/model/__init__.py +25 -2
- huaweicloudsdkcae/v1/model/access_configuration_port.py +32 -3
- huaweicloudsdkcae/v1/model/agency_metadata.py +28 -3
- huaweicloudsdkcae/v1/model/configuration_data_metadata.py +3 -3
- huaweicloudsdkcae/v1/model/configuration_request_data_spec.py +30 -1
- huaweicloudsdkcae/v1/model/create_component_request_body.py +8 -8
- huaweicloudsdkcae/v1/model/create_component_with_configuration_request.py +196 -0
- huaweicloudsdkcae/v1/model/create_component_with_configuration_request_body.py +213 -0
- huaweicloudsdkcae/v1/model/{create_component_request_body_metadata.py → create_component_with_configuration_request_body_metadata.py} +11 -11
- huaweicloudsdkcae/v1/model/{create_component_request_body_spec.py → create_component_with_configuration_request_body_spec.py} +27 -27
- huaweicloudsdkcae/v1/model/create_component_with_configuration_response.py +241 -0
- huaweicloudsdkcae/v1/model/create_component_with_configuration_response_body_status.py +115 -0
- huaweicloudsdkcae/v1/model/create_notice_rule_item.py +244 -0
- huaweicloudsdkcae/v1/model/create_notice_rule_req.py +166 -0
- huaweicloudsdkcae/v1/model/create_notice_rule_request.py +168 -0
- huaweicloudsdkcae/v1/model/create_notice_rule_resp_item.py +277 -0
- huaweicloudsdkcae/v1/model/create_notice_rule_response.py +170 -0
- huaweicloudsdkcae/v1/model/delete_notice_rule_request.py +167 -0
- huaweicloudsdkcae/v1/model/delete_notice_rule_response.py +112 -0
- huaweicloudsdkcae/v1/model/environment_item.py +3 -3
- huaweicloudsdkcae/v1/model/list_notice_rules_request.py +143 -0
- huaweicloudsdkcae/v1/model/list_notice_rules_response.py +174 -0
- huaweicloudsdkcae/v1/model/notice_rule_notification.py +142 -0
- huaweicloudsdkcae/v1/model/notice_rule_scope.py +201 -0
- huaweicloudsdkcae/v1/model/resources_credential.py +144 -0
- huaweicloudsdkcae/v1/model/show_notice_rule_request.py +167 -0
- huaweicloudsdkcae/v1/model/show_notice_rule_response.py +170 -0
- huaweicloudsdkcae/v1/model/trigger_policy.py +201 -0
- huaweicloudsdkcae/v1/model/update_notice_rule_item.py +192 -0
- huaweicloudsdkcae/v1/model/update_notice_rule_req.py +166 -0
- huaweicloudsdkcae/v1/model/update_notice_rule_request.py +192 -0
- huaweicloudsdkcae/v1/model/update_notice_rule_response.py +170 -0
- huaweicloudsdkcae/v1/model/volume.py +30 -1
- huaweicloudsdkcae/v1/model/volume_spec.py +32 -3
- {huaweicloudsdkcae-3.1.98.dist-info → huaweicloudsdkcae-3.1.100.dist-info}/METADATA +2 -2
- {huaweicloudsdkcae-3.1.98.dist-info → huaweicloudsdkcae-3.1.100.dist-info}/RECORD +42 -19
- {huaweicloudsdkcae-3.1.98.dist-info → huaweicloudsdkcae-3.1.100.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcae-3.1.98.dist-info → huaweicloudsdkcae-3.1.100.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcae-3.1.98.dist-info → huaweicloudsdkcae-3.1.100.dist-info}/top_level.txt +0 -0
|
@@ -781,6 +781,77 @@ class CaeClient(Client):
|
|
|
781
781
|
|
|
782
782
|
return http_info
|
|
783
783
|
|
|
784
|
+
def create_component_with_configuration(self, request):
|
|
785
|
+
"""创建、生效配置并部署组件
|
|
786
|
+
|
|
787
|
+
创建、生效配置并部署组件。
|
|
788
|
+
|
|
789
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
790
|
+
|
|
791
|
+
:param request: Request instance for CreateComponentWithConfiguration
|
|
792
|
+
:type request: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequest`
|
|
793
|
+
:rtype: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationResponse`
|
|
794
|
+
"""
|
|
795
|
+
http_info = self._create_component_with_configuration_http_info(request)
|
|
796
|
+
return self._call_api(**http_info)
|
|
797
|
+
|
|
798
|
+
def create_component_with_configuration_invoker(self, request):
|
|
799
|
+
http_info = self._create_component_with_configuration_http_info(request)
|
|
800
|
+
return SyncInvoker(self, http_info)
|
|
801
|
+
|
|
802
|
+
@classmethod
|
|
803
|
+
def _create_component_with_configuration_http_info(cls, request):
|
|
804
|
+
http_info = {
|
|
805
|
+
"method": "POST",
|
|
806
|
+
"resource_path": "/v1/{project_id}/cae/applications/{application_id}/component-with-configurations",
|
|
807
|
+
"request_type": request.__class__.__name__,
|
|
808
|
+
"response_type": "CreateComponentWithConfigurationResponse"
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
812
|
+
|
|
813
|
+
cname = None
|
|
814
|
+
|
|
815
|
+
collection_formats = {}
|
|
816
|
+
|
|
817
|
+
path_params = {}
|
|
818
|
+
if 'application_id' in local_var_params:
|
|
819
|
+
path_params['application_id'] = local_var_params['application_id']
|
|
820
|
+
|
|
821
|
+
query_params = []
|
|
822
|
+
|
|
823
|
+
header_params = {}
|
|
824
|
+
if 'x_enterprise_project_id' in local_var_params:
|
|
825
|
+
header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
|
|
826
|
+
if 'x_environment_id' in local_var_params:
|
|
827
|
+
header_params['X-Environment-ID'] = local_var_params['x_environment_id']
|
|
828
|
+
|
|
829
|
+
form_params = {}
|
|
830
|
+
|
|
831
|
+
body = None
|
|
832
|
+
if 'body' in local_var_params:
|
|
833
|
+
body = local_var_params['body']
|
|
834
|
+
if isinstance(request, SdkStreamRequest):
|
|
835
|
+
body = request.get_file_stream()
|
|
836
|
+
|
|
837
|
+
response_headers = []
|
|
838
|
+
|
|
839
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
840
|
+
['application/json'])
|
|
841
|
+
|
|
842
|
+
auth_settings = []
|
|
843
|
+
|
|
844
|
+
http_info["cname"] = cname
|
|
845
|
+
http_info["collection_formats"] = collection_formats
|
|
846
|
+
http_info["path_params"] = path_params
|
|
847
|
+
http_info["query_params"] = query_params
|
|
848
|
+
http_info["header_params"] = header_params
|
|
849
|
+
http_info["post_params"] = form_params
|
|
850
|
+
http_info["body"] = body
|
|
851
|
+
http_info["response_headers"] = response_headers
|
|
852
|
+
|
|
853
|
+
return http_info
|
|
854
|
+
|
|
784
855
|
def delete_component(self, request):
|
|
785
856
|
"""删除组件
|
|
786
857
|
|
|
@@ -2455,6 +2526,351 @@ class CaeClient(Client):
|
|
|
2455
2526
|
|
|
2456
2527
|
return http_info
|
|
2457
2528
|
|
|
2529
|
+
def create_notice_rule(self, request):
|
|
2530
|
+
"""创建事件通知规则。
|
|
2531
|
+
|
|
2532
|
+
创建事件通知规则。
|
|
2533
|
+
|
|
2534
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
2535
|
+
|
|
2536
|
+
:param request: Request instance for CreateNoticeRule
|
|
2537
|
+
:type request: :class:`huaweicloudsdkcae.v1.CreateNoticeRuleRequest`
|
|
2538
|
+
:rtype: :class:`huaweicloudsdkcae.v1.CreateNoticeRuleResponse`
|
|
2539
|
+
"""
|
|
2540
|
+
http_info = self._create_notice_rule_http_info(request)
|
|
2541
|
+
return self._call_api(**http_info)
|
|
2542
|
+
|
|
2543
|
+
def create_notice_rule_invoker(self, request):
|
|
2544
|
+
http_info = self._create_notice_rule_http_info(request)
|
|
2545
|
+
return SyncInvoker(self, http_info)
|
|
2546
|
+
|
|
2547
|
+
@classmethod
|
|
2548
|
+
def _create_notice_rule_http_info(cls, request):
|
|
2549
|
+
http_info = {
|
|
2550
|
+
"method": "POST",
|
|
2551
|
+
"resource_path": "/v1/{project_id}/cae/notice-rules",
|
|
2552
|
+
"request_type": request.__class__.__name__,
|
|
2553
|
+
"response_type": "CreateNoticeRuleResponse"
|
|
2554
|
+
}
|
|
2555
|
+
|
|
2556
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
2557
|
+
|
|
2558
|
+
cname = None
|
|
2559
|
+
|
|
2560
|
+
collection_formats = {}
|
|
2561
|
+
|
|
2562
|
+
path_params = {}
|
|
2563
|
+
|
|
2564
|
+
query_params = []
|
|
2565
|
+
|
|
2566
|
+
header_params = {}
|
|
2567
|
+
if 'x_enterprise_project_id' in local_var_params:
|
|
2568
|
+
header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
|
|
2569
|
+
if 'x_environment_id' in local_var_params:
|
|
2570
|
+
header_params['X-Environment-ID'] = local_var_params['x_environment_id']
|
|
2571
|
+
|
|
2572
|
+
form_params = {}
|
|
2573
|
+
|
|
2574
|
+
body = None
|
|
2575
|
+
if 'body' in local_var_params:
|
|
2576
|
+
body = local_var_params['body']
|
|
2577
|
+
if isinstance(request, SdkStreamRequest):
|
|
2578
|
+
body = request.get_file_stream()
|
|
2579
|
+
|
|
2580
|
+
response_headers = []
|
|
2581
|
+
|
|
2582
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
2583
|
+
['application/json'])
|
|
2584
|
+
|
|
2585
|
+
auth_settings = []
|
|
2586
|
+
|
|
2587
|
+
http_info["cname"] = cname
|
|
2588
|
+
http_info["collection_formats"] = collection_formats
|
|
2589
|
+
http_info["path_params"] = path_params
|
|
2590
|
+
http_info["query_params"] = query_params
|
|
2591
|
+
http_info["header_params"] = header_params
|
|
2592
|
+
http_info["post_params"] = form_params
|
|
2593
|
+
http_info["body"] = body
|
|
2594
|
+
http_info["response_headers"] = response_headers
|
|
2595
|
+
|
|
2596
|
+
return http_info
|
|
2597
|
+
|
|
2598
|
+
def delete_notice_rule(self, request):
|
|
2599
|
+
"""删除事件通知规则。
|
|
2600
|
+
|
|
2601
|
+
删除事件通知规则。
|
|
2602
|
+
|
|
2603
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
2604
|
+
|
|
2605
|
+
:param request: Request instance for DeleteNoticeRule
|
|
2606
|
+
:type request: :class:`huaweicloudsdkcae.v1.DeleteNoticeRuleRequest`
|
|
2607
|
+
:rtype: :class:`huaweicloudsdkcae.v1.DeleteNoticeRuleResponse`
|
|
2608
|
+
"""
|
|
2609
|
+
http_info = self._delete_notice_rule_http_info(request)
|
|
2610
|
+
return self._call_api(**http_info)
|
|
2611
|
+
|
|
2612
|
+
def delete_notice_rule_invoker(self, request):
|
|
2613
|
+
http_info = self._delete_notice_rule_http_info(request)
|
|
2614
|
+
return SyncInvoker(self, http_info)
|
|
2615
|
+
|
|
2616
|
+
@classmethod
|
|
2617
|
+
def _delete_notice_rule_http_info(cls, request):
|
|
2618
|
+
http_info = {
|
|
2619
|
+
"method": "DELETE",
|
|
2620
|
+
"resource_path": "/v1/{project_id}/cae/notice-rules/{rule_id}",
|
|
2621
|
+
"request_type": request.__class__.__name__,
|
|
2622
|
+
"response_type": "DeleteNoticeRuleResponse"
|
|
2623
|
+
}
|
|
2624
|
+
|
|
2625
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
2626
|
+
|
|
2627
|
+
cname = None
|
|
2628
|
+
|
|
2629
|
+
collection_formats = {}
|
|
2630
|
+
|
|
2631
|
+
path_params = {}
|
|
2632
|
+
if 'rule_id' in local_var_params:
|
|
2633
|
+
path_params['rule_id'] = local_var_params['rule_id']
|
|
2634
|
+
|
|
2635
|
+
query_params = []
|
|
2636
|
+
|
|
2637
|
+
header_params = {}
|
|
2638
|
+
if 'x_enterprise_project_id' in local_var_params:
|
|
2639
|
+
header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
|
|
2640
|
+
if 'x_environment_id' in local_var_params:
|
|
2641
|
+
header_params['X-Environment-ID'] = local_var_params['x_environment_id']
|
|
2642
|
+
|
|
2643
|
+
form_params = {}
|
|
2644
|
+
|
|
2645
|
+
body = None
|
|
2646
|
+
if isinstance(request, SdkStreamRequest):
|
|
2647
|
+
body = request.get_file_stream()
|
|
2648
|
+
|
|
2649
|
+
response_headers = []
|
|
2650
|
+
|
|
2651
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
2652
|
+
['application/json'])
|
|
2653
|
+
|
|
2654
|
+
auth_settings = []
|
|
2655
|
+
|
|
2656
|
+
http_info["cname"] = cname
|
|
2657
|
+
http_info["collection_formats"] = collection_formats
|
|
2658
|
+
http_info["path_params"] = path_params
|
|
2659
|
+
http_info["query_params"] = query_params
|
|
2660
|
+
http_info["header_params"] = header_params
|
|
2661
|
+
http_info["post_params"] = form_params
|
|
2662
|
+
http_info["body"] = body
|
|
2663
|
+
http_info["response_headers"] = response_headers
|
|
2664
|
+
|
|
2665
|
+
return http_info
|
|
2666
|
+
|
|
2667
|
+
def list_notice_rules(self, request):
|
|
2668
|
+
"""查询事件通知规则列表。
|
|
2669
|
+
|
|
2670
|
+
查询事件通知规则列表。
|
|
2671
|
+
|
|
2672
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
2673
|
+
|
|
2674
|
+
:param request: Request instance for ListNoticeRules
|
|
2675
|
+
:type request: :class:`huaweicloudsdkcae.v1.ListNoticeRulesRequest`
|
|
2676
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ListNoticeRulesResponse`
|
|
2677
|
+
"""
|
|
2678
|
+
http_info = self._list_notice_rules_http_info(request)
|
|
2679
|
+
return self._call_api(**http_info)
|
|
2680
|
+
|
|
2681
|
+
def list_notice_rules_invoker(self, request):
|
|
2682
|
+
http_info = self._list_notice_rules_http_info(request)
|
|
2683
|
+
return SyncInvoker(self, http_info)
|
|
2684
|
+
|
|
2685
|
+
@classmethod
|
|
2686
|
+
def _list_notice_rules_http_info(cls, request):
|
|
2687
|
+
http_info = {
|
|
2688
|
+
"method": "GET",
|
|
2689
|
+
"resource_path": "/v1/{project_id}/cae/notice-rules",
|
|
2690
|
+
"request_type": request.__class__.__name__,
|
|
2691
|
+
"response_type": "ListNoticeRulesResponse"
|
|
2692
|
+
}
|
|
2693
|
+
|
|
2694
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
2695
|
+
|
|
2696
|
+
cname = None
|
|
2697
|
+
|
|
2698
|
+
collection_formats = {}
|
|
2699
|
+
|
|
2700
|
+
path_params = {}
|
|
2701
|
+
|
|
2702
|
+
query_params = []
|
|
2703
|
+
|
|
2704
|
+
header_params = {}
|
|
2705
|
+
if 'x_enterprise_project_id' in local_var_params:
|
|
2706
|
+
header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
|
|
2707
|
+
if 'x_environment_id' in local_var_params:
|
|
2708
|
+
header_params['X-Environment-ID'] = local_var_params['x_environment_id']
|
|
2709
|
+
|
|
2710
|
+
form_params = {}
|
|
2711
|
+
|
|
2712
|
+
body = None
|
|
2713
|
+
if isinstance(request, SdkStreamRequest):
|
|
2714
|
+
body = request.get_file_stream()
|
|
2715
|
+
|
|
2716
|
+
response_headers = []
|
|
2717
|
+
|
|
2718
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
2719
|
+
['application/json'])
|
|
2720
|
+
|
|
2721
|
+
auth_settings = []
|
|
2722
|
+
|
|
2723
|
+
http_info["cname"] = cname
|
|
2724
|
+
http_info["collection_formats"] = collection_formats
|
|
2725
|
+
http_info["path_params"] = path_params
|
|
2726
|
+
http_info["query_params"] = query_params
|
|
2727
|
+
http_info["header_params"] = header_params
|
|
2728
|
+
http_info["post_params"] = form_params
|
|
2729
|
+
http_info["body"] = body
|
|
2730
|
+
http_info["response_headers"] = response_headers
|
|
2731
|
+
|
|
2732
|
+
return http_info
|
|
2733
|
+
|
|
2734
|
+
def show_notice_rule(self, request):
|
|
2735
|
+
"""查询事件通知规则。
|
|
2736
|
+
|
|
2737
|
+
查询事件通知规则。
|
|
2738
|
+
|
|
2739
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
2740
|
+
|
|
2741
|
+
:param request: Request instance for ShowNoticeRule
|
|
2742
|
+
:type request: :class:`huaweicloudsdkcae.v1.ShowNoticeRuleRequest`
|
|
2743
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ShowNoticeRuleResponse`
|
|
2744
|
+
"""
|
|
2745
|
+
http_info = self._show_notice_rule_http_info(request)
|
|
2746
|
+
return self._call_api(**http_info)
|
|
2747
|
+
|
|
2748
|
+
def show_notice_rule_invoker(self, request):
|
|
2749
|
+
http_info = self._show_notice_rule_http_info(request)
|
|
2750
|
+
return SyncInvoker(self, http_info)
|
|
2751
|
+
|
|
2752
|
+
@classmethod
|
|
2753
|
+
def _show_notice_rule_http_info(cls, request):
|
|
2754
|
+
http_info = {
|
|
2755
|
+
"method": "GET",
|
|
2756
|
+
"resource_path": "/v1/{project_id}/cae/notice-rules/{rule_id}",
|
|
2757
|
+
"request_type": request.__class__.__name__,
|
|
2758
|
+
"response_type": "ShowNoticeRuleResponse"
|
|
2759
|
+
}
|
|
2760
|
+
|
|
2761
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
2762
|
+
|
|
2763
|
+
cname = None
|
|
2764
|
+
|
|
2765
|
+
collection_formats = {}
|
|
2766
|
+
|
|
2767
|
+
path_params = {}
|
|
2768
|
+
if 'rule_id' in local_var_params:
|
|
2769
|
+
path_params['rule_id'] = local_var_params['rule_id']
|
|
2770
|
+
|
|
2771
|
+
query_params = []
|
|
2772
|
+
|
|
2773
|
+
header_params = {}
|
|
2774
|
+
if 'x_enterprise_project_id' in local_var_params:
|
|
2775
|
+
header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
|
|
2776
|
+
if 'x_environment_id' in local_var_params:
|
|
2777
|
+
header_params['X-Environment-ID'] = local_var_params['x_environment_id']
|
|
2778
|
+
|
|
2779
|
+
form_params = {}
|
|
2780
|
+
|
|
2781
|
+
body = None
|
|
2782
|
+
if isinstance(request, SdkStreamRequest):
|
|
2783
|
+
body = request.get_file_stream()
|
|
2784
|
+
|
|
2785
|
+
response_headers = []
|
|
2786
|
+
|
|
2787
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
2788
|
+
['application/json'])
|
|
2789
|
+
|
|
2790
|
+
auth_settings = []
|
|
2791
|
+
|
|
2792
|
+
http_info["cname"] = cname
|
|
2793
|
+
http_info["collection_formats"] = collection_formats
|
|
2794
|
+
http_info["path_params"] = path_params
|
|
2795
|
+
http_info["query_params"] = query_params
|
|
2796
|
+
http_info["header_params"] = header_params
|
|
2797
|
+
http_info["post_params"] = form_params
|
|
2798
|
+
http_info["body"] = body
|
|
2799
|
+
http_info["response_headers"] = response_headers
|
|
2800
|
+
|
|
2801
|
+
return http_info
|
|
2802
|
+
|
|
2803
|
+
def update_notice_rule(self, request):
|
|
2804
|
+
"""修改事件通知规则。
|
|
2805
|
+
|
|
2806
|
+
修改事件通知规则。
|
|
2807
|
+
|
|
2808
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
2809
|
+
|
|
2810
|
+
:param request: Request instance for UpdateNoticeRule
|
|
2811
|
+
:type request: :class:`huaweicloudsdkcae.v1.UpdateNoticeRuleRequest`
|
|
2812
|
+
:rtype: :class:`huaweicloudsdkcae.v1.UpdateNoticeRuleResponse`
|
|
2813
|
+
"""
|
|
2814
|
+
http_info = self._update_notice_rule_http_info(request)
|
|
2815
|
+
return self._call_api(**http_info)
|
|
2816
|
+
|
|
2817
|
+
def update_notice_rule_invoker(self, request):
|
|
2818
|
+
http_info = self._update_notice_rule_http_info(request)
|
|
2819
|
+
return SyncInvoker(self, http_info)
|
|
2820
|
+
|
|
2821
|
+
@classmethod
|
|
2822
|
+
def _update_notice_rule_http_info(cls, request):
|
|
2823
|
+
http_info = {
|
|
2824
|
+
"method": "PUT",
|
|
2825
|
+
"resource_path": "/v1/{project_id}/cae/notice-rules/{rule_id}",
|
|
2826
|
+
"request_type": request.__class__.__name__,
|
|
2827
|
+
"response_type": "UpdateNoticeRuleResponse"
|
|
2828
|
+
}
|
|
2829
|
+
|
|
2830
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
2831
|
+
|
|
2832
|
+
cname = None
|
|
2833
|
+
|
|
2834
|
+
collection_formats = {}
|
|
2835
|
+
|
|
2836
|
+
path_params = {}
|
|
2837
|
+
if 'rule_id' in local_var_params:
|
|
2838
|
+
path_params['rule_id'] = local_var_params['rule_id']
|
|
2839
|
+
|
|
2840
|
+
query_params = []
|
|
2841
|
+
|
|
2842
|
+
header_params = {}
|
|
2843
|
+
if 'x_enterprise_project_id' in local_var_params:
|
|
2844
|
+
header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
|
|
2845
|
+
if 'x_environment_id' in local_var_params:
|
|
2846
|
+
header_params['X-Environment-ID'] = local_var_params['x_environment_id']
|
|
2847
|
+
|
|
2848
|
+
form_params = {}
|
|
2849
|
+
|
|
2850
|
+
body = None
|
|
2851
|
+
if 'body' in local_var_params:
|
|
2852
|
+
body = local_var_params['body']
|
|
2853
|
+
if isinstance(request, SdkStreamRequest):
|
|
2854
|
+
body = request.get_file_stream()
|
|
2855
|
+
|
|
2856
|
+
response_headers = []
|
|
2857
|
+
|
|
2858
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
2859
|
+
['application/json'])
|
|
2860
|
+
|
|
2861
|
+
auth_settings = []
|
|
2862
|
+
|
|
2863
|
+
http_info["cname"] = cname
|
|
2864
|
+
http_info["collection_formats"] = collection_formats
|
|
2865
|
+
http_info["path_params"] = path_params
|
|
2866
|
+
http_info["query_params"] = query_params
|
|
2867
|
+
http_info["header_params"] = header_params
|
|
2868
|
+
http_info["post_params"] = form_params
|
|
2869
|
+
http_info["body"] = body
|
|
2870
|
+
http_info["response_headers"] = response_headers
|
|
2871
|
+
|
|
2872
|
+
return http_info
|
|
2873
|
+
|
|
2458
2874
|
def create_volume(self, request):
|
|
2459
2875
|
"""授权云存储
|
|
2460
2876
|
|
|
@@ -60,10 +60,14 @@ from huaweicloudsdkcae.v1.model.create_component_configuration_request_body impo
|
|
|
60
60
|
from huaweicloudsdkcae.v1.model.create_component_configuration_response import CreateComponentConfigurationResponse
|
|
61
61
|
from huaweicloudsdkcae.v1.model.create_component_request import CreateComponentRequest
|
|
62
62
|
from huaweicloudsdkcae.v1.model.create_component_request_body import CreateComponentRequestBody
|
|
63
|
-
from huaweicloudsdkcae.v1.model.create_component_request_body_metadata import CreateComponentRequestBodyMetadata
|
|
64
|
-
from huaweicloudsdkcae.v1.model.create_component_request_body_spec import CreateComponentRequestBodySpec
|
|
65
63
|
from huaweicloudsdkcae.v1.model.create_component_response import CreateComponentResponse
|
|
66
64
|
from huaweicloudsdkcae.v1.model.create_component_spec import CreateComponentSpec
|
|
65
|
+
from huaweicloudsdkcae.v1.model.create_component_with_configuration_request import CreateComponentWithConfigurationRequest
|
|
66
|
+
from huaweicloudsdkcae.v1.model.create_component_with_configuration_request_body import CreateComponentWithConfigurationRequestBody
|
|
67
|
+
from huaweicloudsdkcae.v1.model.create_component_with_configuration_request_body_metadata import CreateComponentWithConfigurationRequestBodyMetadata
|
|
68
|
+
from huaweicloudsdkcae.v1.model.create_component_with_configuration_request_body_spec import CreateComponentWithConfigurationRequestBodySpec
|
|
69
|
+
from huaweicloudsdkcae.v1.model.create_component_with_configuration_response import CreateComponentWithConfigurationResponse
|
|
70
|
+
from huaweicloudsdkcae.v1.model.create_component_with_configuration_response_body_status import CreateComponentWithConfigurationResponseBodyStatus
|
|
67
71
|
from huaweicloudsdkcae.v1.model.create_domain_req import CreateDomainReq
|
|
68
72
|
from huaweicloudsdkcae.v1.model.create_domain_request import CreateDomainRequest
|
|
69
73
|
from huaweicloudsdkcae.v1.model.create_domain_response import CreateDomainResponse
|
|
@@ -75,6 +79,11 @@ from huaweicloudsdkcae.v1.model.create_meta_cert import CreateMetaCert
|
|
|
75
79
|
from huaweicloudsdkcae.v1.model.create_meta_domain import CreateMetaDomain
|
|
76
80
|
from huaweicloudsdkcae.v1.model.create_monitor_system_request import CreateMonitorSystemRequest
|
|
77
81
|
from huaweicloudsdkcae.v1.model.create_monitor_system_response import CreateMonitorSystemResponse
|
|
82
|
+
from huaweicloudsdkcae.v1.model.create_notice_rule_item import CreateNoticeRuleItem
|
|
83
|
+
from huaweicloudsdkcae.v1.model.create_notice_rule_req import CreateNoticeRuleReq
|
|
84
|
+
from huaweicloudsdkcae.v1.model.create_notice_rule_request import CreateNoticeRuleRequest
|
|
85
|
+
from huaweicloudsdkcae.v1.model.create_notice_rule_resp_item import CreateNoticeRuleRespItem
|
|
86
|
+
from huaweicloudsdkcae.v1.model.create_notice_rule_response import CreateNoticeRuleResponse
|
|
78
87
|
from huaweicloudsdkcae.v1.model.create_spec_cert import CreateSpecCert
|
|
79
88
|
from huaweicloudsdkcae.v1.model.create_timer_rule_req import CreateTimerRuleReq
|
|
80
89
|
from huaweicloudsdkcae.v1.model.create_timer_rule_request import CreateTimerRuleRequest
|
|
@@ -97,6 +106,8 @@ from huaweicloudsdkcae.v1.model.delete_domain_request import DeleteDomainRequest
|
|
|
97
106
|
from huaweicloudsdkcae.v1.model.delete_domain_response import DeleteDomainResponse
|
|
98
107
|
from huaweicloudsdkcae.v1.model.delete_environment_request import DeleteEnvironmentRequest
|
|
99
108
|
from huaweicloudsdkcae.v1.model.delete_environment_response import DeleteEnvironmentResponse
|
|
109
|
+
from huaweicloudsdkcae.v1.model.delete_notice_rule_request import DeleteNoticeRuleRequest
|
|
110
|
+
from huaweicloudsdkcae.v1.model.delete_notice_rule_response import DeleteNoticeRuleResponse
|
|
100
111
|
from huaweicloudsdkcae.v1.model.delete_timer_rule_request import DeleteTimerRuleRequest
|
|
101
112
|
from huaweicloudsdkcae.v1.model.delete_timer_rule_response import DeleteTimerRuleResponse
|
|
102
113
|
from huaweicloudsdkcae.v1.model.delete_volume_request import DeleteVolumeRequest
|
|
@@ -151,6 +162,8 @@ from huaweicloudsdkcae.v1.model.list_eips_request import ListEipsRequest
|
|
|
151
162
|
from huaweicloudsdkcae.v1.model.list_eips_response import ListEipsResponse
|
|
152
163
|
from huaweicloudsdkcae.v1.model.list_environments_request import ListEnvironmentsRequest
|
|
153
164
|
from huaweicloudsdkcae.v1.model.list_environments_response import ListEnvironmentsResponse
|
|
165
|
+
from huaweicloudsdkcae.v1.model.list_notice_rules_request import ListNoticeRulesRequest
|
|
166
|
+
from huaweicloudsdkcae.v1.model.list_notice_rules_response import ListNoticeRulesResponse
|
|
154
167
|
from huaweicloudsdkcae.v1.model.list_timer_rules_request import ListTimerRulesRequest
|
|
155
168
|
from huaweicloudsdkcae.v1.model.list_timer_rules_response import ListTimerRulesResponse
|
|
156
169
|
from huaweicloudsdkcae.v1.model.list_volumes_request import ListVolumesRequest
|
|
@@ -164,9 +177,12 @@ from huaweicloudsdkcae.v1.model.monitor_system_kind_obj import MonitorSystemKind
|
|
|
164
177
|
from huaweicloudsdkcae.v1.model.monitor_system_request_body import MonitorSystemRequestBody
|
|
165
178
|
from huaweicloudsdkcae.v1.model.monitor_system_request_body_spec import MonitorSystemRequestBodySpec
|
|
166
179
|
from huaweicloudsdkcae.v1.model.mount_component import MountComponent
|
|
180
|
+
from huaweicloudsdkcae.v1.model.notice_rule_notification import NoticeRuleNotification
|
|
181
|
+
from huaweicloudsdkcae.v1.model.notice_rule_scope import NoticeRuleScope
|
|
167
182
|
from huaweicloudsdkcae.v1.model.repo import Repo
|
|
168
183
|
from huaweicloudsdkcae.v1.model.resource_limit import ResourceLimit
|
|
169
184
|
from huaweicloudsdkcae.v1.model.resource_limit_for_upgrade import ResourceLimitForUpgrade
|
|
185
|
+
from huaweicloudsdkcae.v1.model.resources_credential import ResourcesCredential
|
|
170
186
|
from huaweicloudsdkcae.v1.model.retry_job_request import RetryJobRequest
|
|
171
187
|
from huaweicloudsdkcae.v1.model.retry_job_response import RetryJobResponse
|
|
172
188
|
from huaweicloudsdkcae.v1.model.scale_configuration_data_advanced import ScaleConfigurationDataAdvanced
|
|
@@ -183,11 +199,14 @@ from huaweicloudsdkcae.v1.model.show_job_response import ShowJobResponse
|
|
|
183
199
|
from huaweicloudsdkcae.v1.model.show_monitor_system_request import ShowMonitorSystemRequest
|
|
184
200
|
from huaweicloudsdkcae.v1.model.show_monitor_system_response import ShowMonitorSystemResponse
|
|
185
201
|
from huaweicloudsdkcae.v1.model.show_monitor_system_response_body_spec import ShowMonitorSystemResponseBodySpec
|
|
202
|
+
from huaweicloudsdkcae.v1.model.show_notice_rule_request import ShowNoticeRuleRequest
|
|
203
|
+
from huaweicloudsdkcae.v1.model.show_notice_rule_response import ShowNoticeRuleResponse
|
|
186
204
|
from huaweicloudsdkcae.v1.model.source import Source
|
|
187
205
|
from huaweicloudsdkcae.v1.model.spec_cert import SpecCert
|
|
188
206
|
from huaweicloudsdkcae.v1.model.task import Task
|
|
189
207
|
from huaweicloudsdkcae.v1.model.time_rule_kind_obj import TimeRuleKindObj
|
|
190
208
|
from huaweicloudsdkcae.v1.model.timer_rule_details import TimerRuleDetails
|
|
209
|
+
from huaweicloudsdkcae.v1.model.trigger_policy import TriggerPolicy
|
|
191
210
|
from huaweicloudsdkcae.v1.model.update_cert_req import UpdateCertReq
|
|
192
211
|
from huaweicloudsdkcae.v1.model.update_certificate_request import UpdateCertificateRequest
|
|
193
212
|
from huaweicloudsdkcae.v1.model.update_certificate_response import UpdateCertificateResponse
|
|
@@ -204,6 +223,10 @@ from huaweicloudsdkcae.v1.model.update_eip_request_body_spec_ingress import Upda
|
|
|
204
223
|
from huaweicloudsdkcae.v1.model.update_eip_response import UpdateEipResponse
|
|
205
224
|
from huaweicloudsdkcae.v1.model.update_monitor_system_request import UpdateMonitorSystemRequest
|
|
206
225
|
from huaweicloudsdkcae.v1.model.update_monitor_system_response import UpdateMonitorSystemResponse
|
|
226
|
+
from huaweicloudsdkcae.v1.model.update_notice_rule_item import UpdateNoticeRuleItem
|
|
227
|
+
from huaweicloudsdkcae.v1.model.update_notice_rule_req import UpdateNoticeRuleReq
|
|
228
|
+
from huaweicloudsdkcae.v1.model.update_notice_rule_request import UpdateNoticeRuleRequest
|
|
229
|
+
from huaweicloudsdkcae.v1.model.update_notice_rule_response import UpdateNoticeRuleResponse
|
|
207
230
|
from huaweicloudsdkcae.v1.model.update_spec_cert import UpdateSpecCert
|
|
208
231
|
from huaweicloudsdkcae.v1.model.update_timer_rule_details import UpdateTimerRuleDetails
|
|
209
232
|
from huaweicloudsdkcae.v1.model.update_timer_rule_req import UpdateTimerRuleReq
|
|
@@ -23,7 +23,8 @@ class AccessConfigurationPort:
|
|
|
23
23
|
'default_certificate': 'str',
|
|
24
24
|
'certificate': 'str',
|
|
25
25
|
'policy': 'str',
|
|
26
|
-
'paths': 'list[AccessConfigurationHttpPath]'
|
|
26
|
+
'paths': 'list[AccessConfigurationHttpPath]',
|
|
27
|
+
'elb_id': 'str'
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
attribute_map = {
|
|
@@ -33,10 +34,11 @@ class AccessConfigurationPort:
|
|
|
33
34
|
'default_certificate': 'default_certificate',
|
|
34
35
|
'certificate': 'certificate',
|
|
35
36
|
'policy': 'policy',
|
|
36
|
-
'paths': 'paths'
|
|
37
|
+
'paths': 'paths',
|
|
38
|
+
'elb_id': 'elb_id'
|
|
37
39
|
}
|
|
38
40
|
|
|
39
|
-
def __init__(self, target_port=None, port=None, protocol=None, default_certificate=None, certificate=None, policy=None, paths=None):
|
|
41
|
+
def __init__(self, target_port=None, port=None, protocol=None, default_certificate=None, certificate=None, policy=None, paths=None, elb_id=None):
|
|
40
42
|
"""AccessConfigurationPort
|
|
41
43
|
|
|
42
44
|
The model defined in huaweicloud sdk
|
|
@@ -55,6 +57,8 @@ class AccessConfigurationPort:
|
|
|
55
57
|
:type policy: str
|
|
56
58
|
:param paths:
|
|
57
59
|
:type paths: list[:class:`huaweicloudsdkcae.v1.AccessConfigurationHttpPath`]
|
|
60
|
+
:param elb_id: 用户选择的elb的ID。
|
|
61
|
+
:type elb_id: str
|
|
58
62
|
"""
|
|
59
63
|
|
|
60
64
|
|
|
@@ -66,6 +70,7 @@ class AccessConfigurationPort:
|
|
|
66
70
|
self._certificate = None
|
|
67
71
|
self._policy = None
|
|
68
72
|
self._paths = None
|
|
73
|
+
self._elb_id = None
|
|
69
74
|
self.discriminator = None
|
|
70
75
|
|
|
71
76
|
if target_port is not None:
|
|
@@ -82,6 +87,8 @@ class AccessConfigurationPort:
|
|
|
82
87
|
self.policy = policy
|
|
83
88
|
if paths is not None:
|
|
84
89
|
self.paths = paths
|
|
90
|
+
if elb_id is not None:
|
|
91
|
+
self.elb_id = elb_id
|
|
85
92
|
|
|
86
93
|
@property
|
|
87
94
|
def target_port(self):
|
|
@@ -233,6 +240,28 @@ class AccessConfigurationPort:
|
|
|
233
240
|
"""
|
|
234
241
|
self._paths = paths
|
|
235
242
|
|
|
243
|
+
@property
|
|
244
|
+
def elb_id(self):
|
|
245
|
+
"""Gets the elb_id of this AccessConfigurationPort.
|
|
246
|
+
|
|
247
|
+
用户选择的elb的ID。
|
|
248
|
+
|
|
249
|
+
:return: The elb_id of this AccessConfigurationPort.
|
|
250
|
+
:rtype: str
|
|
251
|
+
"""
|
|
252
|
+
return self._elb_id
|
|
253
|
+
|
|
254
|
+
@elb_id.setter
|
|
255
|
+
def elb_id(self, elb_id):
|
|
256
|
+
"""Sets the elb_id of this AccessConfigurationPort.
|
|
257
|
+
|
|
258
|
+
用户选择的elb的ID。
|
|
259
|
+
|
|
260
|
+
:param elb_id: The elb_id of this AccessConfigurationPort.
|
|
261
|
+
:type elb_id: str
|
|
262
|
+
"""
|
|
263
|
+
self._elb_id = elb_id
|
|
264
|
+
|
|
236
265
|
def to_dict(self):
|
|
237
266
|
"""Returns the model properties as a dict"""
|
|
238
267
|
result = {}
|
|
@@ -17,28 +17,35 @@ class AgencyMetadata:
|
|
|
17
17
|
sensitive_list = []
|
|
18
18
|
|
|
19
19
|
openapi_types = {
|
|
20
|
-
'name': 'str'
|
|
20
|
+
'name': 'str',
|
|
21
|
+
'enum': 'object'
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
attribute_map = {
|
|
24
|
-
'name': 'name'
|
|
25
|
+
'name': 'name',
|
|
26
|
+
'enum': 'enum'
|
|
25
27
|
}
|
|
26
28
|
|
|
27
|
-
def __init__(self, name=None):
|
|
29
|
+
def __init__(self, name=None, enum=None):
|
|
28
30
|
"""AgencyMetadata
|
|
29
31
|
|
|
30
32
|
The model defined in huaweicloud sdk
|
|
31
33
|
|
|
32
34
|
:param name: 委托名称,固定值“cae_trust”,该值不可修改。
|
|
33
35
|
:type name: str
|
|
36
|
+
:param enum:
|
|
37
|
+
:type enum: object
|
|
34
38
|
"""
|
|
35
39
|
|
|
36
40
|
|
|
37
41
|
|
|
38
42
|
self._name = None
|
|
43
|
+
self._enum = None
|
|
39
44
|
self.discriminator = None
|
|
40
45
|
|
|
41
46
|
self.name = name
|
|
47
|
+
if enum is not None:
|
|
48
|
+
self.enum = enum
|
|
42
49
|
|
|
43
50
|
@property
|
|
44
51
|
def name(self):
|
|
@@ -62,6 +69,24 @@ class AgencyMetadata:
|
|
|
62
69
|
"""
|
|
63
70
|
self._name = name
|
|
64
71
|
|
|
72
|
+
@property
|
|
73
|
+
def enum(self):
|
|
74
|
+
"""Gets the enum of this AgencyMetadata.
|
|
75
|
+
|
|
76
|
+
:return: The enum of this AgencyMetadata.
|
|
77
|
+
:rtype: object
|
|
78
|
+
"""
|
|
79
|
+
return self._enum
|
|
80
|
+
|
|
81
|
+
@enum.setter
|
|
82
|
+
def enum(self, enum):
|
|
83
|
+
"""Sets the enum of this AgencyMetadata.
|
|
84
|
+
|
|
85
|
+
:param enum: The enum of this AgencyMetadata.
|
|
86
|
+
:type enum: object
|
|
87
|
+
"""
|
|
88
|
+
self._enum = enum
|
|
89
|
+
|
|
65
90
|
def to_dict(self):
|
|
66
91
|
"""Returns the model properties as a dict"""
|
|
67
92
|
result = {}
|
|
@@ -29,7 +29,7 @@ class ConfigurationDataMetadata:
|
|
|
29
29
|
|
|
30
30
|
The model defined in huaweicloud sdk
|
|
31
31
|
|
|
32
|
-
:param annotations: 附加参数。
|
|
32
|
+
:param annotations: 附加参数。 举例:负载均衡分配策略使用加权轮询算法,不启用健康检查。配置如下: - \"kubernetes.io/elb.health-check-flag\": \"off\" - \"kubernetes.io/elb.lb-algorithm\": \"ROUND_ROBIN\"
|
|
33
33
|
:type annotations: dict(str, str)
|
|
34
34
|
"""
|
|
35
35
|
|
|
@@ -45,7 +45,7 @@ class ConfigurationDataMetadata:
|
|
|
45
45
|
def annotations(self):
|
|
46
46
|
"""Gets the annotations of this ConfigurationDataMetadata.
|
|
47
47
|
|
|
48
|
-
附加参数。
|
|
48
|
+
附加参数。 举例:负载均衡分配策略使用加权轮询算法,不启用健康检查。配置如下: - \"kubernetes.io/elb.health-check-flag\": \"off\" - \"kubernetes.io/elb.lb-algorithm\": \"ROUND_ROBIN\"
|
|
49
49
|
|
|
50
50
|
:return: The annotations of this ConfigurationDataMetadata.
|
|
51
51
|
:rtype: dict(str, str)
|
|
@@ -56,7 +56,7 @@ class ConfigurationDataMetadata:
|
|
|
56
56
|
def annotations(self, annotations):
|
|
57
57
|
"""Sets the annotations of this ConfigurationDataMetadata.
|
|
58
58
|
|
|
59
|
-
附加参数。
|
|
59
|
+
附加参数。 举例:负载均衡分配策略使用加权轮询算法,不启用健康检查。配置如下: - \"kubernetes.io/elb.health-check-flag\": \"off\" - \"kubernetes.io/elb.lb-algorithm\": \"ROUND_ROBIN\"
|
|
60
60
|
|
|
61
61
|
:param annotations: The annotations of this ConfigurationDataMetadata.
|
|
62
62
|
:type annotations: dict(str, str)
|