huaweicloudsdkcae 3.1.86__py2.py3-none-any.whl → 3.1.132__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 +38 -6
- huaweicloudsdkcae/v1/cae_async_client.py +601 -45
- huaweicloudsdkcae/v1/cae_client.py +601 -45
- huaweicloudsdkcae/v1/model/__init__.py +38 -6
- huaweicloudsdkcae/v1/model/access_configuration_data_items.py +177 -7
- huaweicloudsdkcae/v1/model/access_configuration_metadata.py +115 -0
- huaweicloudsdkcae/v1/model/access_configuration_port.py +59 -1
- huaweicloudsdkcae/v1/model/agency_metadata.py +28 -3
- huaweicloudsdkcae/v1/model/cloud_storage_log_path_info.py +144 -0
- huaweicloudsdkcae/v1/model/configuration.py +35 -6
- huaweicloudsdkcae/v1/model/configuration_request_data_spec.py +37 -8
- huaweicloudsdkcae/v1/model/configuration_response_data_spec.py +37 -8
- huaweicloudsdkcae/v1/model/create_component_request_body.py +10 -12
- huaweicloudsdkcae/v1/model/{list_component_events_request.py → create_component_with_configuration_request.py} +43 -46
- 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_environment_request_body_metadata.py +3 -3
- 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/create_vpc_egress_request.py +168 -0
- huaweicloudsdkcae/v1/model/{list_component_events_response.py → create_vpc_egress_response.py} +35 -39
- huaweicloudsdkcae/v1/model/delete_notice_rule_request.py +167 -0
- huaweicloudsdkcae/v1/model/delete_notice_rule_response.py +112 -0
- huaweicloudsdkcae/v1/model/delete_vpc_egress_request.py +171 -0
- huaweicloudsdkcae/v1/model/delete_vpc_egress_response.py +85 -0
- huaweicloudsdkcae/v1/model/egress_cidr.py +171 -0
- huaweicloudsdkcae/v1/model/environment_item.py +3 -3
- huaweicloudsdkcae/v1/model/health_check_configuration_http_get.py +4 -4
- huaweicloudsdkcae/v1/model/health_check_configuration_tcp_socket.py +4 -4
- huaweicloudsdkcae/v1/model/list_component_configurations_request.py +32 -3
- huaweicloudsdkcae/v1/model/list_components_request.py +61 -3
- huaweicloudsdkcae/v1/model/list_eip_response_body_spec_egress.py +30 -1
- huaweicloudsdkcae/v1/model/list_eip_response_body_spec_ingress.py +30 -1
- huaweicloudsdkcae/v1/model/list_notice_rules_request.py +143 -0
- huaweicloudsdkcae/v1/model/list_notice_rules_response.py +174 -0
- huaweicloudsdkcae/v1/model/list_vpc_egress_request.py +143 -0
- huaweicloudsdkcae/v1/model/list_vpc_egress_response.py +162 -0
- huaweicloudsdkcae/v1/model/notice_rule_notification.py +171 -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_component_request_body.py +2 -4
- huaweicloudsdkcae/v1/model/update_eip_request_body_spec_egress.py +32 -3
- huaweicloudsdkcae/v1/model/update_eip_request_body_spec_ingress.py +32 -3
- 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/v1/model/{component_event_kind_obj.py → vpc_egress_kind_obj.py} +4 -4
- huaweicloudsdkcae/v1/model/vpc_egress_request_body.py +161 -0
- huaweicloudsdkcae/v1/model/vpc_egress_request_body_spec.py +114 -0
- huaweicloudsdkcae/v1/model/vpc_egress_response_body_spec.py +173 -0
- huaweicloudsdkcae/v1/region/cae_region.py +12 -4
- {huaweicloudsdkcae-3.1.86.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkcae-3.1.86.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/RECORD +68 -36
- {huaweicloudsdkcae-3.1.86.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/WHEEL +1 -1
- huaweicloudsdkcae/v1/model/event_item.py +0 -318
- {huaweicloudsdkcae-3.1.86.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcae-3.1.86.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/top_level.txt +0 -0
|
@@ -781,31 +781,31 @@ class CaeAsyncClient(Client):
|
|
|
781
781
|
|
|
782
782
|
return http_info
|
|
783
783
|
|
|
784
|
-
def
|
|
785
|
-
"""
|
|
784
|
+
def create_component_with_configuration_async(self, request):
|
|
785
|
+
"""创建、生效配置并部署组件
|
|
786
786
|
|
|
787
|
-
|
|
787
|
+
创建、生效配置并部署组件。
|
|
788
788
|
|
|
789
789
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
790
790
|
|
|
791
791
|
|
|
792
|
-
:param request: Request instance for
|
|
793
|
-
:type request: :class:`huaweicloudsdkcae.v1.
|
|
794
|
-
:rtype: :class:`huaweicloudsdkcae.v1.
|
|
792
|
+
:param request: Request instance for CreateComponentWithConfiguration
|
|
793
|
+
:type request: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequest`
|
|
794
|
+
:rtype: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationResponse`
|
|
795
795
|
"""
|
|
796
|
-
http_info = self.
|
|
796
|
+
http_info = self._create_component_with_configuration_http_info(request)
|
|
797
797
|
return self._call_api(**http_info)
|
|
798
798
|
|
|
799
|
-
def
|
|
800
|
-
http_info = self.
|
|
799
|
+
def create_component_with_configuration_async_invoker(self, request):
|
|
800
|
+
http_info = self._create_component_with_configuration_http_info(request)
|
|
801
801
|
return AsyncInvoker(self, http_info)
|
|
802
802
|
|
|
803
|
-
def
|
|
803
|
+
def _create_component_with_configuration_http_info(self, request):
|
|
804
804
|
http_info = {
|
|
805
|
-
"method": "
|
|
806
|
-
"resource_path": "/v1/{project_id}/cae/applications/{application_id}/
|
|
805
|
+
"method": "POST",
|
|
806
|
+
"resource_path": "/v1/{project_id}/cae/applications/{application_id}/component-with-configurations",
|
|
807
807
|
"request_type": request.__class__.__name__,
|
|
808
|
-
"response_type": "
|
|
808
|
+
"response_type": "CreateComponentWithConfigurationResponse"
|
|
809
809
|
}
|
|
810
810
|
|
|
811
811
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -817,8 +817,6 @@ class CaeAsyncClient(Client):
|
|
|
817
817
|
path_params = {}
|
|
818
818
|
if 'application_id' in local_var_params:
|
|
819
819
|
path_params['application_id'] = local_var_params['application_id']
|
|
820
|
-
if 'component_id' in local_var_params:
|
|
821
|
-
path_params['component_id'] = local_var_params['component_id']
|
|
822
820
|
|
|
823
821
|
query_params = []
|
|
824
822
|
|
|
@@ -831,6 +829,8 @@ class CaeAsyncClient(Client):
|
|
|
831
829
|
form_params = {}
|
|
832
830
|
|
|
833
831
|
body = None
|
|
832
|
+
if 'body' in local_var_params:
|
|
833
|
+
body = local_var_params['body']
|
|
834
834
|
if isinstance(request, SdkStreamRequest):
|
|
835
835
|
body = request.get_file_stream()
|
|
836
836
|
|
|
@@ -852,31 +852,31 @@ class CaeAsyncClient(Client):
|
|
|
852
852
|
|
|
853
853
|
return http_info
|
|
854
854
|
|
|
855
|
-
def
|
|
856
|
-
"""
|
|
855
|
+
def delete_component_async(self, request):
|
|
856
|
+
"""删除组件
|
|
857
857
|
|
|
858
|
-
|
|
858
|
+
删除组件。
|
|
859
859
|
|
|
860
860
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
861
861
|
|
|
862
862
|
|
|
863
|
-
:param request: Request instance for
|
|
864
|
-
:type request: :class:`huaweicloudsdkcae.v1.
|
|
865
|
-
:rtype: :class:`huaweicloudsdkcae.v1.
|
|
863
|
+
:param request: Request instance for DeleteComponent
|
|
864
|
+
:type request: :class:`huaweicloudsdkcae.v1.DeleteComponentRequest`
|
|
865
|
+
:rtype: :class:`huaweicloudsdkcae.v1.DeleteComponentResponse`
|
|
866
866
|
"""
|
|
867
|
-
http_info = self.
|
|
867
|
+
http_info = self._delete_component_http_info(request)
|
|
868
868
|
return self._call_api(**http_info)
|
|
869
869
|
|
|
870
|
-
def
|
|
871
|
-
http_info = self.
|
|
870
|
+
def delete_component_async_invoker(self, request):
|
|
871
|
+
http_info = self._delete_component_http_info(request)
|
|
872
872
|
return AsyncInvoker(self, http_info)
|
|
873
873
|
|
|
874
|
-
def
|
|
874
|
+
def _delete_component_http_info(self, request):
|
|
875
875
|
http_info = {
|
|
876
|
-
"method": "
|
|
877
|
-
"resource_path": "/v1/{project_id}/cae/applications/{application_id}/components/{component_id}
|
|
876
|
+
"method": "DELETE",
|
|
877
|
+
"resource_path": "/v1/{project_id}/cae/applications/{application_id}/components/{component_id}",
|
|
878
878
|
"request_type": request.__class__.__name__,
|
|
879
|
-
"response_type": "
|
|
879
|
+
"response_type": "DeleteComponentResponse"
|
|
880
880
|
}
|
|
881
881
|
|
|
882
882
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -902,8 +902,6 @@ class CaeAsyncClient(Client):
|
|
|
902
902
|
form_params = {}
|
|
903
903
|
|
|
904
904
|
body = None
|
|
905
|
-
if 'body' in local_var_params:
|
|
906
|
-
body = local_var_params['body']
|
|
907
905
|
if isinstance(request, SdkStreamRequest):
|
|
908
906
|
body = request.get_file_stream()
|
|
909
907
|
|
|
@@ -925,31 +923,31 @@ class CaeAsyncClient(Client):
|
|
|
925
923
|
|
|
926
924
|
return http_info
|
|
927
925
|
|
|
928
|
-
def
|
|
929
|
-
"""
|
|
926
|
+
def execute_action_async(self, request):
|
|
927
|
+
"""操作组件
|
|
930
928
|
|
|
931
|
-
|
|
929
|
+
对组件执行指定操作,如部署、升级、重启、停止、启动、伸缩、配置、回滚。
|
|
932
930
|
|
|
933
931
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
934
932
|
|
|
935
933
|
|
|
936
|
-
:param request: Request instance for
|
|
937
|
-
:type request: :class:`huaweicloudsdkcae.v1.
|
|
938
|
-
:rtype: :class:`huaweicloudsdkcae.v1.
|
|
934
|
+
:param request: Request instance for ExecuteAction
|
|
935
|
+
:type request: :class:`huaweicloudsdkcae.v1.ExecuteActionRequest`
|
|
936
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ExecuteActionResponse`
|
|
939
937
|
"""
|
|
940
|
-
http_info = self.
|
|
938
|
+
http_info = self._execute_action_http_info(request)
|
|
941
939
|
return self._call_api(**http_info)
|
|
942
940
|
|
|
943
|
-
def
|
|
944
|
-
http_info = self.
|
|
941
|
+
def execute_action_async_invoker(self, request):
|
|
942
|
+
http_info = self._execute_action_http_info(request)
|
|
945
943
|
return AsyncInvoker(self, http_info)
|
|
946
944
|
|
|
947
|
-
def
|
|
945
|
+
def _execute_action_http_info(self, request):
|
|
948
946
|
http_info = {
|
|
949
|
-
"method": "
|
|
950
|
-
"resource_path": "/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/
|
|
947
|
+
"method": "POST",
|
|
948
|
+
"resource_path": "/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/action",
|
|
951
949
|
"request_type": request.__class__.__name__,
|
|
952
|
-
"response_type": "
|
|
950
|
+
"response_type": "ExecuteActionResponse"
|
|
953
951
|
}
|
|
954
952
|
|
|
955
953
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -975,6 +973,8 @@ class CaeAsyncClient(Client):
|
|
|
975
973
|
form_params = {}
|
|
976
974
|
|
|
977
975
|
body = None
|
|
976
|
+
if 'body' in local_var_params:
|
|
977
|
+
body = local_var_params['body']
|
|
978
978
|
if isinstance(request, SdkStreamRequest):
|
|
979
979
|
body = request.get_file_stream()
|
|
980
980
|
|
|
@@ -1180,6 +1180,10 @@ class CaeAsyncClient(Client):
|
|
|
1180
1180
|
query_params.append(('limit', local_var_params['limit']))
|
|
1181
1181
|
if 'offset' in local_var_params:
|
|
1182
1182
|
query_params.append(('offset', local_var_params['offset']))
|
|
1183
|
+
if 'sort_key' in local_var_params:
|
|
1184
|
+
query_params.append(('sort_key', local_var_params['sort_key']))
|
|
1185
|
+
if 'sort' in local_var_params:
|
|
1186
|
+
query_params.append(('sort', local_var_params['sort']))
|
|
1183
1187
|
|
|
1184
1188
|
header_params = {}
|
|
1185
1189
|
if 'x_enterprise_project_id' in local_var_params:
|
|
@@ -1539,6 +1543,8 @@ class CaeAsyncClient(Client):
|
|
|
1539
1543
|
path_params['component_id'] = local_var_params['component_id']
|
|
1540
1544
|
|
|
1541
1545
|
query_params = []
|
|
1546
|
+
if 'display_mode' in local_var_params:
|
|
1547
|
+
query_params.append(('displayMode', local_var_params['display_mode']))
|
|
1542
1548
|
|
|
1543
1549
|
header_params = {}
|
|
1544
1550
|
if 'x_enterprise_project_id' in local_var_params:
|
|
@@ -1843,9 +1849,9 @@ class CaeAsyncClient(Client):
|
|
|
1843
1849
|
return http_info
|
|
1844
1850
|
|
|
1845
1851
|
def update_eip_async(self, request):
|
|
1846
|
-
"""
|
|
1852
|
+
"""修改出入网带宽以及开闭状态
|
|
1847
1853
|
|
|
1848
|
-
|
|
1854
|
+
修改出入网带宽以及开闭状态。
|
|
1849
1855
|
|
|
1850
1856
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
1851
1857
|
|
|
@@ -2455,6 +2461,351 @@ class CaeAsyncClient(Client):
|
|
|
2455
2461
|
|
|
2456
2462
|
return http_info
|
|
2457
2463
|
|
|
2464
|
+
def create_notice_rule_async(self, request):
|
|
2465
|
+
"""创建事件通知规则。
|
|
2466
|
+
|
|
2467
|
+
创建事件通知规则。
|
|
2468
|
+
|
|
2469
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
2470
|
+
|
|
2471
|
+
|
|
2472
|
+
:param request: Request instance for CreateNoticeRule
|
|
2473
|
+
:type request: :class:`huaweicloudsdkcae.v1.CreateNoticeRuleRequest`
|
|
2474
|
+
:rtype: :class:`huaweicloudsdkcae.v1.CreateNoticeRuleResponse`
|
|
2475
|
+
"""
|
|
2476
|
+
http_info = self._create_notice_rule_http_info(request)
|
|
2477
|
+
return self._call_api(**http_info)
|
|
2478
|
+
|
|
2479
|
+
def create_notice_rule_async_invoker(self, request):
|
|
2480
|
+
http_info = self._create_notice_rule_http_info(request)
|
|
2481
|
+
return AsyncInvoker(self, http_info)
|
|
2482
|
+
|
|
2483
|
+
def _create_notice_rule_http_info(self, request):
|
|
2484
|
+
http_info = {
|
|
2485
|
+
"method": "POST",
|
|
2486
|
+
"resource_path": "/v1/{project_id}/cae/notice-rules",
|
|
2487
|
+
"request_type": request.__class__.__name__,
|
|
2488
|
+
"response_type": "CreateNoticeRuleResponse"
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2491
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
2492
|
+
|
|
2493
|
+
cname = None
|
|
2494
|
+
|
|
2495
|
+
collection_formats = {}
|
|
2496
|
+
|
|
2497
|
+
path_params = {}
|
|
2498
|
+
|
|
2499
|
+
query_params = []
|
|
2500
|
+
|
|
2501
|
+
header_params = {}
|
|
2502
|
+
if 'x_enterprise_project_id' in local_var_params:
|
|
2503
|
+
header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
|
|
2504
|
+
if 'x_environment_id' in local_var_params:
|
|
2505
|
+
header_params['X-Environment-ID'] = local_var_params['x_environment_id']
|
|
2506
|
+
|
|
2507
|
+
form_params = {}
|
|
2508
|
+
|
|
2509
|
+
body = None
|
|
2510
|
+
if 'body' in local_var_params:
|
|
2511
|
+
body = local_var_params['body']
|
|
2512
|
+
if isinstance(request, SdkStreamRequest):
|
|
2513
|
+
body = request.get_file_stream()
|
|
2514
|
+
|
|
2515
|
+
response_headers = []
|
|
2516
|
+
|
|
2517
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
2518
|
+
['application/json'])
|
|
2519
|
+
|
|
2520
|
+
auth_settings = []
|
|
2521
|
+
|
|
2522
|
+
http_info["cname"] = cname
|
|
2523
|
+
http_info["collection_formats"] = collection_formats
|
|
2524
|
+
http_info["path_params"] = path_params
|
|
2525
|
+
http_info["query_params"] = query_params
|
|
2526
|
+
http_info["header_params"] = header_params
|
|
2527
|
+
http_info["post_params"] = form_params
|
|
2528
|
+
http_info["body"] = body
|
|
2529
|
+
http_info["response_headers"] = response_headers
|
|
2530
|
+
|
|
2531
|
+
return http_info
|
|
2532
|
+
|
|
2533
|
+
def delete_notice_rule_async(self, request):
|
|
2534
|
+
"""删除事件通知规则。
|
|
2535
|
+
|
|
2536
|
+
删除事件通知规则。
|
|
2537
|
+
|
|
2538
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
2539
|
+
|
|
2540
|
+
|
|
2541
|
+
:param request: Request instance for DeleteNoticeRule
|
|
2542
|
+
:type request: :class:`huaweicloudsdkcae.v1.DeleteNoticeRuleRequest`
|
|
2543
|
+
:rtype: :class:`huaweicloudsdkcae.v1.DeleteNoticeRuleResponse`
|
|
2544
|
+
"""
|
|
2545
|
+
http_info = self._delete_notice_rule_http_info(request)
|
|
2546
|
+
return self._call_api(**http_info)
|
|
2547
|
+
|
|
2548
|
+
def delete_notice_rule_async_invoker(self, request):
|
|
2549
|
+
http_info = self._delete_notice_rule_http_info(request)
|
|
2550
|
+
return AsyncInvoker(self, http_info)
|
|
2551
|
+
|
|
2552
|
+
def _delete_notice_rule_http_info(self, request):
|
|
2553
|
+
http_info = {
|
|
2554
|
+
"method": "DELETE",
|
|
2555
|
+
"resource_path": "/v1/{project_id}/cae/notice-rules/{rule_id}",
|
|
2556
|
+
"request_type": request.__class__.__name__,
|
|
2557
|
+
"response_type": "DeleteNoticeRuleResponse"
|
|
2558
|
+
}
|
|
2559
|
+
|
|
2560
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
2561
|
+
|
|
2562
|
+
cname = None
|
|
2563
|
+
|
|
2564
|
+
collection_formats = {}
|
|
2565
|
+
|
|
2566
|
+
path_params = {}
|
|
2567
|
+
if 'rule_id' in local_var_params:
|
|
2568
|
+
path_params['rule_id'] = local_var_params['rule_id']
|
|
2569
|
+
|
|
2570
|
+
query_params = []
|
|
2571
|
+
|
|
2572
|
+
header_params = {}
|
|
2573
|
+
if 'x_enterprise_project_id' in local_var_params:
|
|
2574
|
+
header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
|
|
2575
|
+
if 'x_environment_id' in local_var_params:
|
|
2576
|
+
header_params['X-Environment-ID'] = local_var_params['x_environment_id']
|
|
2577
|
+
|
|
2578
|
+
form_params = {}
|
|
2579
|
+
|
|
2580
|
+
body = None
|
|
2581
|
+
if isinstance(request, SdkStreamRequest):
|
|
2582
|
+
body = request.get_file_stream()
|
|
2583
|
+
|
|
2584
|
+
response_headers = []
|
|
2585
|
+
|
|
2586
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
2587
|
+
['application/json'])
|
|
2588
|
+
|
|
2589
|
+
auth_settings = []
|
|
2590
|
+
|
|
2591
|
+
http_info["cname"] = cname
|
|
2592
|
+
http_info["collection_formats"] = collection_formats
|
|
2593
|
+
http_info["path_params"] = path_params
|
|
2594
|
+
http_info["query_params"] = query_params
|
|
2595
|
+
http_info["header_params"] = header_params
|
|
2596
|
+
http_info["post_params"] = form_params
|
|
2597
|
+
http_info["body"] = body
|
|
2598
|
+
http_info["response_headers"] = response_headers
|
|
2599
|
+
|
|
2600
|
+
return http_info
|
|
2601
|
+
|
|
2602
|
+
def list_notice_rules_async(self, request):
|
|
2603
|
+
"""查询事件通知规则列表。
|
|
2604
|
+
|
|
2605
|
+
查询事件通知规则列表。
|
|
2606
|
+
|
|
2607
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
2608
|
+
|
|
2609
|
+
|
|
2610
|
+
:param request: Request instance for ListNoticeRules
|
|
2611
|
+
:type request: :class:`huaweicloudsdkcae.v1.ListNoticeRulesRequest`
|
|
2612
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ListNoticeRulesResponse`
|
|
2613
|
+
"""
|
|
2614
|
+
http_info = self._list_notice_rules_http_info(request)
|
|
2615
|
+
return self._call_api(**http_info)
|
|
2616
|
+
|
|
2617
|
+
def list_notice_rules_async_invoker(self, request):
|
|
2618
|
+
http_info = self._list_notice_rules_http_info(request)
|
|
2619
|
+
return AsyncInvoker(self, http_info)
|
|
2620
|
+
|
|
2621
|
+
def _list_notice_rules_http_info(self, request):
|
|
2622
|
+
http_info = {
|
|
2623
|
+
"method": "GET",
|
|
2624
|
+
"resource_path": "/v1/{project_id}/cae/notice-rules",
|
|
2625
|
+
"request_type": request.__class__.__name__,
|
|
2626
|
+
"response_type": "ListNoticeRulesResponse"
|
|
2627
|
+
}
|
|
2628
|
+
|
|
2629
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
2630
|
+
|
|
2631
|
+
cname = None
|
|
2632
|
+
|
|
2633
|
+
collection_formats = {}
|
|
2634
|
+
|
|
2635
|
+
path_params = {}
|
|
2636
|
+
|
|
2637
|
+
query_params = []
|
|
2638
|
+
|
|
2639
|
+
header_params = {}
|
|
2640
|
+
if 'x_enterprise_project_id' in local_var_params:
|
|
2641
|
+
header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
|
|
2642
|
+
if 'x_environment_id' in local_var_params:
|
|
2643
|
+
header_params['X-Environment-ID'] = local_var_params['x_environment_id']
|
|
2644
|
+
|
|
2645
|
+
form_params = {}
|
|
2646
|
+
|
|
2647
|
+
body = None
|
|
2648
|
+
if isinstance(request, SdkStreamRequest):
|
|
2649
|
+
body = request.get_file_stream()
|
|
2650
|
+
|
|
2651
|
+
response_headers = []
|
|
2652
|
+
|
|
2653
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
2654
|
+
['application/json'])
|
|
2655
|
+
|
|
2656
|
+
auth_settings = []
|
|
2657
|
+
|
|
2658
|
+
http_info["cname"] = cname
|
|
2659
|
+
http_info["collection_formats"] = collection_formats
|
|
2660
|
+
http_info["path_params"] = path_params
|
|
2661
|
+
http_info["query_params"] = query_params
|
|
2662
|
+
http_info["header_params"] = header_params
|
|
2663
|
+
http_info["post_params"] = form_params
|
|
2664
|
+
http_info["body"] = body
|
|
2665
|
+
http_info["response_headers"] = response_headers
|
|
2666
|
+
|
|
2667
|
+
return http_info
|
|
2668
|
+
|
|
2669
|
+
def show_notice_rule_async(self, request):
|
|
2670
|
+
"""查询事件通知规则。
|
|
2671
|
+
|
|
2672
|
+
查询事件通知规则。
|
|
2673
|
+
|
|
2674
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
2675
|
+
|
|
2676
|
+
|
|
2677
|
+
:param request: Request instance for ShowNoticeRule
|
|
2678
|
+
:type request: :class:`huaweicloudsdkcae.v1.ShowNoticeRuleRequest`
|
|
2679
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ShowNoticeRuleResponse`
|
|
2680
|
+
"""
|
|
2681
|
+
http_info = self._show_notice_rule_http_info(request)
|
|
2682
|
+
return self._call_api(**http_info)
|
|
2683
|
+
|
|
2684
|
+
def show_notice_rule_async_invoker(self, request):
|
|
2685
|
+
http_info = self._show_notice_rule_http_info(request)
|
|
2686
|
+
return AsyncInvoker(self, http_info)
|
|
2687
|
+
|
|
2688
|
+
def _show_notice_rule_http_info(self, request):
|
|
2689
|
+
http_info = {
|
|
2690
|
+
"method": "GET",
|
|
2691
|
+
"resource_path": "/v1/{project_id}/cae/notice-rules/{rule_id}",
|
|
2692
|
+
"request_type": request.__class__.__name__,
|
|
2693
|
+
"response_type": "ShowNoticeRuleResponse"
|
|
2694
|
+
}
|
|
2695
|
+
|
|
2696
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
2697
|
+
|
|
2698
|
+
cname = None
|
|
2699
|
+
|
|
2700
|
+
collection_formats = {}
|
|
2701
|
+
|
|
2702
|
+
path_params = {}
|
|
2703
|
+
if 'rule_id' in local_var_params:
|
|
2704
|
+
path_params['rule_id'] = local_var_params['rule_id']
|
|
2705
|
+
|
|
2706
|
+
query_params = []
|
|
2707
|
+
|
|
2708
|
+
header_params = {}
|
|
2709
|
+
if 'x_enterprise_project_id' in local_var_params:
|
|
2710
|
+
header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
|
|
2711
|
+
if 'x_environment_id' in local_var_params:
|
|
2712
|
+
header_params['X-Environment-ID'] = local_var_params['x_environment_id']
|
|
2713
|
+
|
|
2714
|
+
form_params = {}
|
|
2715
|
+
|
|
2716
|
+
body = None
|
|
2717
|
+
if isinstance(request, SdkStreamRequest):
|
|
2718
|
+
body = request.get_file_stream()
|
|
2719
|
+
|
|
2720
|
+
response_headers = []
|
|
2721
|
+
|
|
2722
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
2723
|
+
['application/json'])
|
|
2724
|
+
|
|
2725
|
+
auth_settings = []
|
|
2726
|
+
|
|
2727
|
+
http_info["cname"] = cname
|
|
2728
|
+
http_info["collection_formats"] = collection_formats
|
|
2729
|
+
http_info["path_params"] = path_params
|
|
2730
|
+
http_info["query_params"] = query_params
|
|
2731
|
+
http_info["header_params"] = header_params
|
|
2732
|
+
http_info["post_params"] = form_params
|
|
2733
|
+
http_info["body"] = body
|
|
2734
|
+
http_info["response_headers"] = response_headers
|
|
2735
|
+
|
|
2736
|
+
return http_info
|
|
2737
|
+
|
|
2738
|
+
def update_notice_rule_async(self, request):
|
|
2739
|
+
"""修改事件通知规则。
|
|
2740
|
+
|
|
2741
|
+
修改事件通知规则。
|
|
2742
|
+
|
|
2743
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
2744
|
+
|
|
2745
|
+
|
|
2746
|
+
:param request: Request instance for UpdateNoticeRule
|
|
2747
|
+
:type request: :class:`huaweicloudsdkcae.v1.UpdateNoticeRuleRequest`
|
|
2748
|
+
:rtype: :class:`huaweicloudsdkcae.v1.UpdateNoticeRuleResponse`
|
|
2749
|
+
"""
|
|
2750
|
+
http_info = self._update_notice_rule_http_info(request)
|
|
2751
|
+
return self._call_api(**http_info)
|
|
2752
|
+
|
|
2753
|
+
def update_notice_rule_async_invoker(self, request):
|
|
2754
|
+
http_info = self._update_notice_rule_http_info(request)
|
|
2755
|
+
return AsyncInvoker(self, http_info)
|
|
2756
|
+
|
|
2757
|
+
def _update_notice_rule_http_info(self, request):
|
|
2758
|
+
http_info = {
|
|
2759
|
+
"method": "PUT",
|
|
2760
|
+
"resource_path": "/v1/{project_id}/cae/notice-rules/{rule_id}",
|
|
2761
|
+
"request_type": request.__class__.__name__,
|
|
2762
|
+
"response_type": "UpdateNoticeRuleResponse"
|
|
2763
|
+
}
|
|
2764
|
+
|
|
2765
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
2766
|
+
|
|
2767
|
+
cname = None
|
|
2768
|
+
|
|
2769
|
+
collection_formats = {}
|
|
2770
|
+
|
|
2771
|
+
path_params = {}
|
|
2772
|
+
if 'rule_id' in local_var_params:
|
|
2773
|
+
path_params['rule_id'] = local_var_params['rule_id']
|
|
2774
|
+
|
|
2775
|
+
query_params = []
|
|
2776
|
+
|
|
2777
|
+
header_params = {}
|
|
2778
|
+
if 'x_enterprise_project_id' in local_var_params:
|
|
2779
|
+
header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
|
|
2780
|
+
if 'x_environment_id' in local_var_params:
|
|
2781
|
+
header_params['X-Environment-ID'] = local_var_params['x_environment_id']
|
|
2782
|
+
|
|
2783
|
+
form_params = {}
|
|
2784
|
+
|
|
2785
|
+
body = None
|
|
2786
|
+
if 'body' in local_var_params:
|
|
2787
|
+
body = local_var_params['body']
|
|
2788
|
+
if isinstance(request, SdkStreamRequest):
|
|
2789
|
+
body = request.get_file_stream()
|
|
2790
|
+
|
|
2791
|
+
response_headers = []
|
|
2792
|
+
|
|
2793
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
2794
|
+
['application/json'])
|
|
2795
|
+
|
|
2796
|
+
auth_settings = []
|
|
2797
|
+
|
|
2798
|
+
http_info["cname"] = cname
|
|
2799
|
+
http_info["collection_formats"] = collection_formats
|
|
2800
|
+
http_info["path_params"] = path_params
|
|
2801
|
+
http_info["query_params"] = query_params
|
|
2802
|
+
http_info["header_params"] = header_params
|
|
2803
|
+
http_info["post_params"] = form_params
|
|
2804
|
+
http_info["body"] = body
|
|
2805
|
+
http_info["response_headers"] = response_headers
|
|
2806
|
+
|
|
2807
|
+
return http_info
|
|
2808
|
+
|
|
2458
2809
|
def create_volume_async(self, request):
|
|
2459
2810
|
"""授权云存储
|
|
2460
2811
|
|
|
@@ -2662,6 +3013,211 @@ class CaeAsyncClient(Client):
|
|
|
2662
3013
|
|
|
2663
3014
|
return http_info
|
|
2664
3015
|
|
|
3016
|
+
def create_vpc_egress_async(self, request):
|
|
3017
|
+
"""创建CAE环境访问VPC配置
|
|
3018
|
+
|
|
3019
|
+
创建CAE环境访问VPC配置。
|
|
3020
|
+
|
|
3021
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
3022
|
+
|
|
3023
|
+
|
|
3024
|
+
:param request: Request instance for CreateVpcEgress
|
|
3025
|
+
:type request: :class:`huaweicloudsdkcae.v1.CreateVpcEgressRequest`
|
|
3026
|
+
:rtype: :class:`huaweicloudsdkcae.v1.CreateVpcEgressResponse`
|
|
3027
|
+
"""
|
|
3028
|
+
http_info = self._create_vpc_egress_http_info(request)
|
|
3029
|
+
return self._call_api(**http_info)
|
|
3030
|
+
|
|
3031
|
+
def create_vpc_egress_async_invoker(self, request):
|
|
3032
|
+
http_info = self._create_vpc_egress_http_info(request)
|
|
3033
|
+
return AsyncInvoker(self, http_info)
|
|
3034
|
+
|
|
3035
|
+
def _create_vpc_egress_http_info(self, request):
|
|
3036
|
+
http_info = {
|
|
3037
|
+
"method": "POST",
|
|
3038
|
+
"resource_path": "/v1/{project_id}/cae/vpc-egress",
|
|
3039
|
+
"request_type": request.__class__.__name__,
|
|
3040
|
+
"response_type": "CreateVpcEgressResponse"
|
|
3041
|
+
}
|
|
3042
|
+
|
|
3043
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
3044
|
+
|
|
3045
|
+
cname = None
|
|
3046
|
+
|
|
3047
|
+
collection_formats = {}
|
|
3048
|
+
|
|
3049
|
+
path_params = {}
|
|
3050
|
+
|
|
3051
|
+
query_params = []
|
|
3052
|
+
|
|
3053
|
+
header_params = {}
|
|
3054
|
+
if 'x_enterprise_project_id' in local_var_params:
|
|
3055
|
+
header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
|
|
3056
|
+
if 'x_environment_id' in local_var_params:
|
|
3057
|
+
header_params['X-Environment-ID'] = local_var_params['x_environment_id']
|
|
3058
|
+
|
|
3059
|
+
form_params = {}
|
|
3060
|
+
|
|
3061
|
+
body = None
|
|
3062
|
+
if 'body' in local_var_params:
|
|
3063
|
+
body = local_var_params['body']
|
|
3064
|
+
if isinstance(request, SdkStreamRequest):
|
|
3065
|
+
body = request.get_file_stream()
|
|
3066
|
+
|
|
3067
|
+
response_headers = []
|
|
3068
|
+
|
|
3069
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
3070
|
+
['application/json'])
|
|
3071
|
+
|
|
3072
|
+
auth_settings = []
|
|
3073
|
+
|
|
3074
|
+
http_info["cname"] = cname
|
|
3075
|
+
http_info["collection_formats"] = collection_formats
|
|
3076
|
+
http_info["path_params"] = path_params
|
|
3077
|
+
http_info["query_params"] = query_params
|
|
3078
|
+
http_info["header_params"] = header_params
|
|
3079
|
+
http_info["post_params"] = form_params
|
|
3080
|
+
http_info["body"] = body
|
|
3081
|
+
http_info["response_headers"] = response_headers
|
|
3082
|
+
|
|
3083
|
+
return http_info
|
|
3084
|
+
|
|
3085
|
+
def delete_vpc_egress_async(self, request):
|
|
3086
|
+
"""删除CAE环境访问VPC配置
|
|
3087
|
+
|
|
3088
|
+
删除CAE环境访问VPC配置。
|
|
3089
|
+
|
|
3090
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
3091
|
+
|
|
3092
|
+
|
|
3093
|
+
:param request: Request instance for DeleteVpcEgress
|
|
3094
|
+
:type request: :class:`huaweicloudsdkcae.v1.DeleteVpcEgressRequest`
|
|
3095
|
+
:rtype: :class:`huaweicloudsdkcae.v1.DeleteVpcEgressResponse`
|
|
3096
|
+
"""
|
|
3097
|
+
http_info = self._delete_vpc_egress_http_info(request)
|
|
3098
|
+
return self._call_api(**http_info)
|
|
3099
|
+
|
|
3100
|
+
def delete_vpc_egress_async_invoker(self, request):
|
|
3101
|
+
http_info = self._delete_vpc_egress_http_info(request)
|
|
3102
|
+
return AsyncInvoker(self, http_info)
|
|
3103
|
+
|
|
3104
|
+
def _delete_vpc_egress_http_info(self, request):
|
|
3105
|
+
http_info = {
|
|
3106
|
+
"method": "DELETE",
|
|
3107
|
+
"resource_path": "/v1/{project_id}/cae/vpc-egress/{vpc_egress_id}",
|
|
3108
|
+
"request_type": request.__class__.__name__,
|
|
3109
|
+
"response_type": "DeleteVpcEgressResponse"
|
|
3110
|
+
}
|
|
3111
|
+
|
|
3112
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
3113
|
+
|
|
3114
|
+
cname = None
|
|
3115
|
+
|
|
3116
|
+
collection_formats = {}
|
|
3117
|
+
|
|
3118
|
+
path_params = {}
|
|
3119
|
+
if 'vpc_egress_id' in local_var_params:
|
|
3120
|
+
path_params['vpc_egress_id'] = local_var_params['vpc_egress_id']
|
|
3121
|
+
|
|
3122
|
+
query_params = []
|
|
3123
|
+
|
|
3124
|
+
header_params = {}
|
|
3125
|
+
if 'x_enterprise_project_id' in local_var_params:
|
|
3126
|
+
header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
|
|
3127
|
+
if 'x_environment_id' in local_var_params:
|
|
3128
|
+
header_params['X-Environment-ID'] = local_var_params['x_environment_id']
|
|
3129
|
+
|
|
3130
|
+
form_params = {}
|
|
3131
|
+
|
|
3132
|
+
body = None
|
|
3133
|
+
if isinstance(request, SdkStreamRequest):
|
|
3134
|
+
body = request.get_file_stream()
|
|
3135
|
+
|
|
3136
|
+
response_headers = []
|
|
3137
|
+
|
|
3138
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
3139
|
+
['application/json'])
|
|
3140
|
+
|
|
3141
|
+
auth_settings = []
|
|
3142
|
+
|
|
3143
|
+
http_info["cname"] = cname
|
|
3144
|
+
http_info["collection_formats"] = collection_formats
|
|
3145
|
+
http_info["path_params"] = path_params
|
|
3146
|
+
http_info["query_params"] = query_params
|
|
3147
|
+
http_info["header_params"] = header_params
|
|
3148
|
+
http_info["post_params"] = form_params
|
|
3149
|
+
http_info["body"] = body
|
|
3150
|
+
http_info["response_headers"] = response_headers
|
|
3151
|
+
|
|
3152
|
+
return http_info
|
|
3153
|
+
|
|
3154
|
+
def list_vpc_egress_async(self, request):
|
|
3155
|
+
"""获取CAE环境访问VPC配置
|
|
3156
|
+
|
|
3157
|
+
获取CAE环境访问VPC配置。
|
|
3158
|
+
|
|
3159
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
3160
|
+
|
|
3161
|
+
|
|
3162
|
+
:param request: Request instance for ListVpcEgress
|
|
3163
|
+
:type request: :class:`huaweicloudsdkcae.v1.ListVpcEgressRequest`
|
|
3164
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ListVpcEgressResponse`
|
|
3165
|
+
"""
|
|
3166
|
+
http_info = self._list_vpc_egress_http_info(request)
|
|
3167
|
+
return self._call_api(**http_info)
|
|
3168
|
+
|
|
3169
|
+
def list_vpc_egress_async_invoker(self, request):
|
|
3170
|
+
http_info = self._list_vpc_egress_http_info(request)
|
|
3171
|
+
return AsyncInvoker(self, http_info)
|
|
3172
|
+
|
|
3173
|
+
def _list_vpc_egress_http_info(self, request):
|
|
3174
|
+
http_info = {
|
|
3175
|
+
"method": "GET",
|
|
3176
|
+
"resource_path": "/v1/{project_id}/cae/vpc-egress",
|
|
3177
|
+
"request_type": request.__class__.__name__,
|
|
3178
|
+
"response_type": "ListVpcEgressResponse"
|
|
3179
|
+
}
|
|
3180
|
+
|
|
3181
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
3182
|
+
|
|
3183
|
+
cname = None
|
|
3184
|
+
|
|
3185
|
+
collection_formats = {}
|
|
3186
|
+
|
|
3187
|
+
path_params = {}
|
|
3188
|
+
|
|
3189
|
+
query_params = []
|
|
3190
|
+
|
|
3191
|
+
header_params = {}
|
|
3192
|
+
if 'x_enterprise_project_id' in local_var_params:
|
|
3193
|
+
header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
|
|
3194
|
+
if 'x_environment_id' in local_var_params:
|
|
3195
|
+
header_params['X-Environment-ID'] = local_var_params['x_environment_id']
|
|
3196
|
+
|
|
3197
|
+
form_params = {}
|
|
3198
|
+
|
|
3199
|
+
body = None
|
|
3200
|
+
if isinstance(request, SdkStreamRequest):
|
|
3201
|
+
body = request.get_file_stream()
|
|
3202
|
+
|
|
3203
|
+
response_headers = []
|
|
3204
|
+
|
|
3205
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
3206
|
+
['application/json'])
|
|
3207
|
+
|
|
3208
|
+
auth_settings = []
|
|
3209
|
+
|
|
3210
|
+
http_info["cname"] = cname
|
|
3211
|
+
http_info["collection_formats"] = collection_formats
|
|
3212
|
+
http_info["path_params"] = path_params
|
|
3213
|
+
http_info["query_params"] = query_params
|
|
3214
|
+
http_info["header_params"] = header_params
|
|
3215
|
+
http_info["post_params"] = form_params
|
|
3216
|
+
http_info["body"] = body
|
|
3217
|
+
http_info["response_headers"] = response_headers
|
|
3218
|
+
|
|
3219
|
+
return http_info
|
|
3220
|
+
|
|
2665
3221
|
def create_timer_rule_async(self, request):
|
|
2666
3222
|
"""创建定时启停规则
|
|
2667
3223
|
|