huaweicloudsdkcae 3.1.110__py2.py3-none-any.whl → 3.1.112__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 +1 -4
- huaweicloudsdkcae/v1/cae_async_client.py +4 -71
- huaweicloudsdkcae/v1/cae_client.py +4 -71
- huaweicloudsdkcae/v1/model/__init__.py +1 -4
- huaweicloudsdkcae/v1/model/{component_event_kind_obj.py → cloud_storage_log_path_info.py} +65 -8
- huaweicloudsdkcae/v1/model/configuration.py +35 -6
- huaweicloudsdkcae/v1/model/configuration_request_data_spec.py +33 -4
- huaweicloudsdkcae/v1/model/configuration_response_data_spec.py +33 -4
- huaweicloudsdkcae/v1/model/create_component_request_body.py +2 -4
- 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/notice_rule_notification.py +32 -3
- 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-3.1.110.dist-info → huaweicloudsdkcae-3.1.112.dist-info}/METADATA +2 -2
- {huaweicloudsdkcae-3.1.110.dist-info → huaweicloudsdkcae-3.1.112.dist-info}/RECORD +21 -24
- huaweicloudsdkcae/v1/model/event_item.py +0 -318
- huaweicloudsdkcae/v1/model/list_component_events_request.py +0 -199
- huaweicloudsdkcae/v1/model/list_component_events_response.py +0 -166
- {huaweicloudsdkcae-3.1.110.dist-info → huaweicloudsdkcae-3.1.112.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcae-3.1.110.dist-info → huaweicloudsdkcae-3.1.112.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcae-3.1.110.dist-info → huaweicloudsdkcae-3.1.112.dist-info}/top_level.txt +0 -0
huaweicloudsdkcae/v1/__init__.py
CHANGED
|
@@ -29,8 +29,8 @@ from huaweicloudsdkcae.v1.model.build import Build
|
|
|
29
29
|
from huaweicloudsdkcae.v1.model.cert_item import CertItem
|
|
30
30
|
from huaweicloudsdkcae.v1.model.cert_req import CertReq
|
|
31
31
|
from huaweicloudsdkcae.v1.model.certificate_kind_obj import CertificateKindObj
|
|
32
|
+
from huaweicloudsdkcae.v1.model.cloud_storage_log_path_info import CloudStorageLogPathInfo
|
|
32
33
|
from huaweicloudsdkcae.v1.model.component_configuration_kind_obj import ComponentConfigurationKindObj
|
|
33
|
-
from huaweicloudsdkcae.v1.model.component_event_kind_obj import ComponentEventKindObj
|
|
34
34
|
from huaweicloudsdkcae.v1.model.component_execution_result import ComponentExecutionResult
|
|
35
35
|
from huaweicloudsdkcae.v1.model.component_info import ComponentInfo
|
|
36
36
|
from huaweicloudsdkcae.v1.model.component_item import ComponentItem
|
|
@@ -122,7 +122,6 @@ from huaweicloudsdkcae.v1.model.egress_cidr import EgressCidr
|
|
|
122
122
|
from huaweicloudsdkcae.v1.model.eip_kind_obj import EipKindObj
|
|
123
123
|
from huaweicloudsdkcae.v1.model.environment_item import EnvironmentItem
|
|
124
124
|
from huaweicloudsdkcae.v1.model.environment_kind_obj import EnvironmentKindObj
|
|
125
|
-
from huaweicloudsdkcae.v1.model.event_item import EventItem
|
|
126
125
|
from huaweicloudsdkcae.v1.model.execute_action_request import ExecuteActionRequest
|
|
127
126
|
from huaweicloudsdkcae.v1.model.execute_action_request_body import ExecuteActionRequestBody
|
|
128
127
|
from huaweicloudsdkcae.v1.model.execute_action_request_body_metadata import ExecuteActionRequestBodyMetadata
|
|
@@ -147,8 +146,6 @@ from huaweicloudsdkcae.v1.model.list_certificates_response import ListCertificat
|
|
|
147
146
|
from huaweicloudsdkcae.v1.model.list_component_configurations_request import ListComponentConfigurationsRequest
|
|
148
147
|
from huaweicloudsdkcae.v1.model.list_component_configurations_response import ListComponentConfigurationsResponse
|
|
149
148
|
from huaweicloudsdkcae.v1.model.list_component_configurations_response_data import ListComponentConfigurationsResponseData
|
|
150
|
-
from huaweicloudsdkcae.v1.model.list_component_events_request import ListComponentEventsRequest
|
|
151
|
-
from huaweicloudsdkcae.v1.model.list_component_events_response import ListComponentEventsResponse
|
|
152
149
|
from huaweicloudsdkcae.v1.model.list_component_instances_request import ListComponentInstancesRequest
|
|
153
150
|
from huaweicloudsdkcae.v1.model.list_component_instances_response import ListComponentInstancesResponse
|
|
154
151
|
from huaweicloudsdkcae.v1.model.list_component_snapshots_request import ListComponentSnapshotsRequest
|
|
@@ -996,77 +996,6 @@ class CaeAsyncClient(Client):
|
|
|
996
996
|
|
|
997
997
|
return http_info
|
|
998
998
|
|
|
999
|
-
def list_component_events_async(self, request):
|
|
1000
|
-
"""获取组件事件列表
|
|
1001
|
-
|
|
1002
|
-
获取组件事件列表。
|
|
1003
|
-
|
|
1004
|
-
Please refer to HUAWEI cloud API Explorer for details.
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
:param request: Request instance for ListComponentEvents
|
|
1008
|
-
:type request: :class:`huaweicloudsdkcae.v1.ListComponentEventsRequest`
|
|
1009
|
-
:rtype: :class:`huaweicloudsdkcae.v1.ListComponentEventsResponse`
|
|
1010
|
-
"""
|
|
1011
|
-
http_info = self._list_component_events_http_info(request)
|
|
1012
|
-
return self._call_api(**http_info)
|
|
1013
|
-
|
|
1014
|
-
def list_component_events_async_invoker(self, request):
|
|
1015
|
-
http_info = self._list_component_events_http_info(request)
|
|
1016
|
-
return AsyncInvoker(self, http_info)
|
|
1017
|
-
|
|
1018
|
-
def _list_component_events_http_info(self, request):
|
|
1019
|
-
http_info = {
|
|
1020
|
-
"method": "GET",
|
|
1021
|
-
"resource_path": "/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/events",
|
|
1022
|
-
"request_type": request.__class__.__name__,
|
|
1023
|
-
"response_type": "ListComponentEventsResponse"
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
1027
|
-
|
|
1028
|
-
cname = None
|
|
1029
|
-
|
|
1030
|
-
collection_formats = {}
|
|
1031
|
-
|
|
1032
|
-
path_params = {}
|
|
1033
|
-
if 'application_id' in local_var_params:
|
|
1034
|
-
path_params['application_id'] = local_var_params['application_id']
|
|
1035
|
-
if 'component_id' in local_var_params:
|
|
1036
|
-
path_params['component_id'] = local_var_params['component_id']
|
|
1037
|
-
|
|
1038
|
-
query_params = []
|
|
1039
|
-
|
|
1040
|
-
header_params = {}
|
|
1041
|
-
if 'x_enterprise_project_id' in local_var_params:
|
|
1042
|
-
header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
|
|
1043
|
-
if 'x_environment_id' in local_var_params:
|
|
1044
|
-
header_params['X-Environment-ID'] = local_var_params['x_environment_id']
|
|
1045
|
-
|
|
1046
|
-
form_params = {}
|
|
1047
|
-
|
|
1048
|
-
body = None
|
|
1049
|
-
if isinstance(request, SdkStreamRequest):
|
|
1050
|
-
body = request.get_file_stream()
|
|
1051
|
-
|
|
1052
|
-
response_headers = []
|
|
1053
|
-
|
|
1054
|
-
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
1055
|
-
['application/json'])
|
|
1056
|
-
|
|
1057
|
-
auth_settings = []
|
|
1058
|
-
|
|
1059
|
-
http_info["cname"] = cname
|
|
1060
|
-
http_info["collection_formats"] = collection_formats
|
|
1061
|
-
http_info["path_params"] = path_params
|
|
1062
|
-
http_info["query_params"] = query_params
|
|
1063
|
-
http_info["header_params"] = header_params
|
|
1064
|
-
http_info["post_params"] = form_params
|
|
1065
|
-
http_info["body"] = body
|
|
1066
|
-
http_info["response_headers"] = response_headers
|
|
1067
|
-
|
|
1068
|
-
return http_info
|
|
1069
|
-
|
|
1070
999
|
def list_component_instances_async(self, request):
|
|
1071
1000
|
"""获取组件实例列表
|
|
1072
1001
|
|
|
@@ -1251,6 +1180,10 @@ class CaeAsyncClient(Client):
|
|
|
1251
1180
|
query_params.append(('limit', local_var_params['limit']))
|
|
1252
1181
|
if 'offset' in local_var_params:
|
|
1253
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']))
|
|
1254
1187
|
|
|
1255
1188
|
header_params = {}
|
|
1256
1189
|
if 'x_enterprise_project_id' in local_var_params:
|
|
@@ -996,77 +996,6 @@ class CaeClient(Client):
|
|
|
996
996
|
|
|
997
997
|
return http_info
|
|
998
998
|
|
|
999
|
-
def list_component_events(self, request):
|
|
1000
|
-
"""获取组件事件列表
|
|
1001
|
-
|
|
1002
|
-
获取组件事件列表。
|
|
1003
|
-
|
|
1004
|
-
Please refer to HUAWEI cloud API Explorer for details.
|
|
1005
|
-
|
|
1006
|
-
:param request: Request instance for ListComponentEvents
|
|
1007
|
-
:type request: :class:`huaweicloudsdkcae.v1.ListComponentEventsRequest`
|
|
1008
|
-
:rtype: :class:`huaweicloudsdkcae.v1.ListComponentEventsResponse`
|
|
1009
|
-
"""
|
|
1010
|
-
http_info = self._list_component_events_http_info(request)
|
|
1011
|
-
return self._call_api(**http_info)
|
|
1012
|
-
|
|
1013
|
-
def list_component_events_invoker(self, request):
|
|
1014
|
-
http_info = self._list_component_events_http_info(request)
|
|
1015
|
-
return SyncInvoker(self, http_info)
|
|
1016
|
-
|
|
1017
|
-
@classmethod
|
|
1018
|
-
def _list_component_events_http_info(cls, request):
|
|
1019
|
-
http_info = {
|
|
1020
|
-
"method": "GET",
|
|
1021
|
-
"resource_path": "/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/events",
|
|
1022
|
-
"request_type": request.__class__.__name__,
|
|
1023
|
-
"response_type": "ListComponentEventsResponse"
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
1027
|
-
|
|
1028
|
-
cname = None
|
|
1029
|
-
|
|
1030
|
-
collection_formats = {}
|
|
1031
|
-
|
|
1032
|
-
path_params = {}
|
|
1033
|
-
if 'application_id' in local_var_params:
|
|
1034
|
-
path_params['application_id'] = local_var_params['application_id']
|
|
1035
|
-
if 'component_id' in local_var_params:
|
|
1036
|
-
path_params['component_id'] = local_var_params['component_id']
|
|
1037
|
-
|
|
1038
|
-
query_params = []
|
|
1039
|
-
|
|
1040
|
-
header_params = {}
|
|
1041
|
-
if 'x_enterprise_project_id' in local_var_params:
|
|
1042
|
-
header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
|
|
1043
|
-
if 'x_environment_id' in local_var_params:
|
|
1044
|
-
header_params['X-Environment-ID'] = local_var_params['x_environment_id']
|
|
1045
|
-
|
|
1046
|
-
form_params = {}
|
|
1047
|
-
|
|
1048
|
-
body = None
|
|
1049
|
-
if isinstance(request, SdkStreamRequest):
|
|
1050
|
-
body = request.get_file_stream()
|
|
1051
|
-
|
|
1052
|
-
response_headers = []
|
|
1053
|
-
|
|
1054
|
-
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
1055
|
-
['application/json'])
|
|
1056
|
-
|
|
1057
|
-
auth_settings = []
|
|
1058
|
-
|
|
1059
|
-
http_info["cname"] = cname
|
|
1060
|
-
http_info["collection_formats"] = collection_formats
|
|
1061
|
-
http_info["path_params"] = path_params
|
|
1062
|
-
http_info["query_params"] = query_params
|
|
1063
|
-
http_info["header_params"] = header_params
|
|
1064
|
-
http_info["post_params"] = form_params
|
|
1065
|
-
http_info["body"] = body
|
|
1066
|
-
http_info["response_headers"] = response_headers
|
|
1067
|
-
|
|
1068
|
-
return http_info
|
|
1069
|
-
|
|
1070
999
|
def list_component_instances(self, request):
|
|
1071
1000
|
"""获取组件实例列表
|
|
1072
1001
|
|
|
@@ -1251,6 +1180,10 @@ class CaeClient(Client):
|
|
|
1251
1180
|
query_params.append(('limit', local_var_params['limit']))
|
|
1252
1181
|
if 'offset' in local_var_params:
|
|
1253
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']))
|
|
1254
1187
|
|
|
1255
1188
|
header_params = {}
|
|
1256
1189
|
if 'x_enterprise_project_id' in local_var_params:
|
|
@@ -27,8 +27,8 @@ from huaweicloudsdkcae.v1.model.build import Build
|
|
|
27
27
|
from huaweicloudsdkcae.v1.model.cert_item import CertItem
|
|
28
28
|
from huaweicloudsdkcae.v1.model.cert_req import CertReq
|
|
29
29
|
from huaweicloudsdkcae.v1.model.certificate_kind_obj import CertificateKindObj
|
|
30
|
+
from huaweicloudsdkcae.v1.model.cloud_storage_log_path_info import CloudStorageLogPathInfo
|
|
30
31
|
from huaweicloudsdkcae.v1.model.component_configuration_kind_obj import ComponentConfigurationKindObj
|
|
31
|
-
from huaweicloudsdkcae.v1.model.component_event_kind_obj import ComponentEventKindObj
|
|
32
32
|
from huaweicloudsdkcae.v1.model.component_execution_result import ComponentExecutionResult
|
|
33
33
|
from huaweicloudsdkcae.v1.model.component_info import ComponentInfo
|
|
34
34
|
from huaweicloudsdkcae.v1.model.component_item import ComponentItem
|
|
@@ -120,7 +120,6 @@ from huaweicloudsdkcae.v1.model.egress_cidr import EgressCidr
|
|
|
120
120
|
from huaweicloudsdkcae.v1.model.eip_kind_obj import EipKindObj
|
|
121
121
|
from huaweicloudsdkcae.v1.model.environment_item import EnvironmentItem
|
|
122
122
|
from huaweicloudsdkcae.v1.model.environment_kind_obj import EnvironmentKindObj
|
|
123
|
-
from huaweicloudsdkcae.v1.model.event_item import EventItem
|
|
124
123
|
from huaweicloudsdkcae.v1.model.execute_action_request import ExecuteActionRequest
|
|
125
124
|
from huaweicloudsdkcae.v1.model.execute_action_request_body import ExecuteActionRequestBody
|
|
126
125
|
from huaweicloudsdkcae.v1.model.execute_action_request_body_metadata import ExecuteActionRequestBodyMetadata
|
|
@@ -145,8 +144,6 @@ from huaweicloudsdkcae.v1.model.list_certificates_response import ListCertificat
|
|
|
145
144
|
from huaweicloudsdkcae.v1.model.list_component_configurations_request import ListComponentConfigurationsRequest
|
|
146
145
|
from huaweicloudsdkcae.v1.model.list_component_configurations_response import ListComponentConfigurationsResponse
|
|
147
146
|
from huaweicloudsdkcae.v1.model.list_component_configurations_response_data import ListComponentConfigurationsResponseData
|
|
148
|
-
from huaweicloudsdkcae.v1.model.list_component_events_request import ListComponentEventsRequest
|
|
149
|
-
from huaweicloudsdkcae.v1.model.list_component_events_response import ListComponentEventsResponse
|
|
150
147
|
from huaweicloudsdkcae.v1.model.list_component_instances_request import ListComponentInstancesRequest
|
|
151
148
|
from huaweicloudsdkcae.v1.model.list_component_instances_response import ListComponentInstancesResponse
|
|
152
149
|
from huaweicloudsdkcae.v1.model.list_component_snapshots_request import ListComponentSnapshotsRequest
|
|
@@ -5,11 +5,8 @@ import six
|
|
|
5
5
|
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
class
|
|
9
|
-
|
|
10
|
-
allowed enum values
|
|
11
|
-
"""
|
|
12
|
-
COMPONENTEVENT = "ComponentEvent"
|
|
8
|
+
class CloudStorageLogPathInfo:
|
|
9
|
+
|
|
13
10
|
"""
|
|
14
11
|
Attributes:
|
|
15
12
|
openapi_types (dict): The key is attribute name
|
|
@@ -20,21 +17,81 @@ class ComponentEventKindObj:
|
|
|
20
17
|
sensitive_list = []
|
|
21
18
|
|
|
22
19
|
openapi_types = {
|
|
20
|
+
'dir_path': 'str',
|
|
21
|
+
'file_name_pattern': 'str'
|
|
23
22
|
}
|
|
24
23
|
|
|
25
24
|
attribute_map = {
|
|
25
|
+
'dir_path': 'dir_path',
|
|
26
|
+
'file_name_pattern': 'file_name_pattern'
|
|
26
27
|
}
|
|
27
28
|
|
|
28
|
-
def __init__(self):
|
|
29
|
-
"""
|
|
29
|
+
def __init__(self, dir_path=None, file_name_pattern=None):
|
|
30
|
+
"""CloudStorageLogPathInfo
|
|
30
31
|
|
|
31
32
|
The model defined in huaweicloud sdk
|
|
32
33
|
|
|
34
|
+
:param dir_path: 容器挂载路径。
|
|
35
|
+
:type dir_path: str
|
|
36
|
+
:param file_name_pattern: 日志文件名匹配模式。
|
|
37
|
+
:type file_name_pattern: str
|
|
33
38
|
"""
|
|
34
39
|
|
|
35
40
|
|
|
41
|
+
|
|
42
|
+
self._dir_path = None
|
|
43
|
+
self._file_name_pattern = None
|
|
36
44
|
self.discriminator = None
|
|
37
45
|
|
|
46
|
+
if dir_path is not None:
|
|
47
|
+
self.dir_path = dir_path
|
|
48
|
+
if file_name_pattern is not None:
|
|
49
|
+
self.file_name_pattern = file_name_pattern
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
def dir_path(self):
|
|
53
|
+
"""Gets the dir_path of this CloudStorageLogPathInfo.
|
|
54
|
+
|
|
55
|
+
容器挂载路径。
|
|
56
|
+
|
|
57
|
+
:return: The dir_path of this CloudStorageLogPathInfo.
|
|
58
|
+
:rtype: str
|
|
59
|
+
"""
|
|
60
|
+
return self._dir_path
|
|
61
|
+
|
|
62
|
+
@dir_path.setter
|
|
63
|
+
def dir_path(self, dir_path):
|
|
64
|
+
"""Sets the dir_path of this CloudStorageLogPathInfo.
|
|
65
|
+
|
|
66
|
+
容器挂载路径。
|
|
67
|
+
|
|
68
|
+
:param dir_path: The dir_path of this CloudStorageLogPathInfo.
|
|
69
|
+
:type dir_path: str
|
|
70
|
+
"""
|
|
71
|
+
self._dir_path = dir_path
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def file_name_pattern(self):
|
|
75
|
+
"""Gets the file_name_pattern of this CloudStorageLogPathInfo.
|
|
76
|
+
|
|
77
|
+
日志文件名匹配模式。
|
|
78
|
+
|
|
79
|
+
:return: The file_name_pattern of this CloudStorageLogPathInfo.
|
|
80
|
+
:rtype: str
|
|
81
|
+
"""
|
|
82
|
+
return self._file_name_pattern
|
|
83
|
+
|
|
84
|
+
@file_name_pattern.setter
|
|
85
|
+
def file_name_pattern(self, file_name_pattern):
|
|
86
|
+
"""Sets the file_name_pattern of this CloudStorageLogPathInfo.
|
|
87
|
+
|
|
88
|
+
日志文件名匹配模式。
|
|
89
|
+
|
|
90
|
+
:param file_name_pattern: The file_name_pattern of this CloudStorageLogPathInfo.
|
|
91
|
+
:type file_name_pattern: str
|
|
92
|
+
"""
|
|
93
|
+
self._file_name_pattern = file_name_pattern
|
|
94
|
+
|
|
38
95
|
def to_dict(self):
|
|
39
96
|
"""Returns the model properties as a dict"""
|
|
40
97
|
result = {}
|
|
@@ -77,7 +134,7 @@ class ComponentEventKindObj:
|
|
|
77
134
|
|
|
78
135
|
def __eq__(self, other):
|
|
79
136
|
"""Returns true if both objects are equal"""
|
|
80
|
-
if not isinstance(other,
|
|
137
|
+
if not isinstance(other, CloudStorageLogPathInfo):
|
|
81
138
|
return False
|
|
82
139
|
|
|
83
140
|
return self.__dict__ == other.__dict__
|
|
@@ -21,7 +21,8 @@ class Configuration:
|
|
|
21
21
|
'operated_at': 'datetime',
|
|
22
22
|
'operation_id': 'str',
|
|
23
23
|
'type': 'str',
|
|
24
|
-
'is_activated': 'bool'
|
|
24
|
+
'is_activated': 'bool',
|
|
25
|
+
'is_using': 'bool'
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
attribute_map = {
|
|
@@ -29,10 +30,11 @@ class Configuration:
|
|
|
29
30
|
'operated_at': 'operated_at',
|
|
30
31
|
'operation_id': 'operation_id',
|
|
31
32
|
'type': 'type',
|
|
32
|
-
'is_activated': 'is_activated'
|
|
33
|
+
'is_activated': 'is_activated',
|
|
34
|
+
'is_using': 'is_using'
|
|
33
35
|
}
|
|
34
36
|
|
|
35
|
-
def __init__(self, data=None, operated_at=None, operation_id=None, type=None, is_activated=None):
|
|
37
|
+
def __init__(self, data=None, operated_at=None, operation_id=None, type=None, is_activated=None, is_using=None):
|
|
36
38
|
"""Configuration
|
|
37
39
|
|
|
38
40
|
The model defined in huaweicloud sdk
|
|
@@ -45,8 +47,10 @@ class Configuration:
|
|
|
45
47
|
:type operation_id: str
|
|
46
48
|
:param type: 组件配置类型。
|
|
47
49
|
:type type: str
|
|
48
|
-
:param is_activated:
|
|
50
|
+
:param is_activated: 配置是否生效过。
|
|
49
51
|
:type is_activated: bool
|
|
52
|
+
:param is_using: 配置是否正在使用。
|
|
53
|
+
:type is_using: bool
|
|
50
54
|
"""
|
|
51
55
|
|
|
52
56
|
|
|
@@ -56,6 +60,7 @@ class Configuration:
|
|
|
56
60
|
self._operation_id = None
|
|
57
61
|
self._type = None
|
|
58
62
|
self._is_activated = None
|
|
63
|
+
self._is_using = None
|
|
59
64
|
self.discriminator = None
|
|
60
65
|
|
|
61
66
|
if data is not None:
|
|
@@ -68,6 +73,8 @@ class Configuration:
|
|
|
68
73
|
self.type = type
|
|
69
74
|
if is_activated is not None:
|
|
70
75
|
self.is_activated = is_activated
|
|
76
|
+
if is_using is not None:
|
|
77
|
+
self.is_using = is_using
|
|
71
78
|
|
|
72
79
|
@property
|
|
73
80
|
def data(self):
|
|
@@ -157,7 +164,7 @@ class Configuration:
|
|
|
157
164
|
def is_activated(self):
|
|
158
165
|
"""Gets the is_activated of this Configuration.
|
|
159
166
|
|
|
160
|
-
|
|
167
|
+
配置是否生效过。
|
|
161
168
|
|
|
162
169
|
:return: The is_activated of this Configuration.
|
|
163
170
|
:rtype: bool
|
|
@@ -168,13 +175,35 @@ class Configuration:
|
|
|
168
175
|
def is_activated(self, is_activated):
|
|
169
176
|
"""Sets the is_activated of this Configuration.
|
|
170
177
|
|
|
171
|
-
|
|
178
|
+
配置是否生效过。
|
|
172
179
|
|
|
173
180
|
:param is_activated: The is_activated of this Configuration.
|
|
174
181
|
:type is_activated: bool
|
|
175
182
|
"""
|
|
176
183
|
self._is_activated = is_activated
|
|
177
184
|
|
|
185
|
+
@property
|
|
186
|
+
def is_using(self):
|
|
187
|
+
"""Gets the is_using of this Configuration.
|
|
188
|
+
|
|
189
|
+
配置是否正在使用。
|
|
190
|
+
|
|
191
|
+
:return: The is_using of this Configuration.
|
|
192
|
+
:rtype: bool
|
|
193
|
+
"""
|
|
194
|
+
return self._is_using
|
|
195
|
+
|
|
196
|
+
@is_using.setter
|
|
197
|
+
def is_using(self, is_using):
|
|
198
|
+
"""Sets the is_using of this Configuration.
|
|
199
|
+
|
|
200
|
+
配置是否正在使用。
|
|
201
|
+
|
|
202
|
+
:param is_using: The is_using of this Configuration.
|
|
203
|
+
:type is_using: bool
|
|
204
|
+
"""
|
|
205
|
+
self._is_using = is_using
|
|
206
|
+
|
|
178
207
|
def to_dict(self):
|
|
179
208
|
"""Returns the model properties as a dict"""
|
|
180
209
|
result = {}
|
|
@@ -41,6 +41,7 @@ class ConfigurationRequestDataSpec:
|
|
|
41
41
|
'post_start': 'ConfigurationRequestDataSpecPostStart',
|
|
42
42
|
'pre_stop': 'ConfigurationRequestDataSpecPreStop',
|
|
43
43
|
'log_paths': 'list[str]',
|
|
44
|
+
'cloud_storage_log_paths': 'list[CloudStorageLogPathInfo]',
|
|
44
45
|
'instrumentation': 'str',
|
|
45
46
|
'path': 'str',
|
|
46
47
|
'port': 'int',
|
|
@@ -72,13 +73,14 @@ class ConfigurationRequestDataSpec:
|
|
|
72
73
|
'post_start': 'postStart',
|
|
73
74
|
'pre_stop': 'preStop',
|
|
74
75
|
'log_paths': 'log_paths',
|
|
76
|
+
'cloud_storage_log_paths': 'cloud_storage_log_paths',
|
|
75
77
|
'instrumentation': 'instrumentation',
|
|
76
78
|
'path': 'path',
|
|
77
79
|
'port': 'port',
|
|
78
80
|
'metrics': 'metrics'
|
|
79
81
|
}
|
|
80
82
|
|
|
81
|
-
def __init__(self, rds_id=None, rds_db_name=None, rds_address=None, rds_username=None, rds_password=None, rds_port=None, config_center_addr=None, service_center_addr=None, cse_id=None, envs=None, ip=None, items=None, scale_strategy=None, max_replica_count=None, min_replica_count=None, advanced=None, triggers=None, volumes=None, liveness_probe=None, startup_probe=None, readiness_probe=None, post_start=None, pre_stop=None, log_paths=None, instrumentation=None, path=None, port=None, metrics=None):
|
|
83
|
+
def __init__(self, rds_id=None, rds_db_name=None, rds_address=None, rds_username=None, rds_password=None, rds_port=None, config_center_addr=None, service_center_addr=None, cse_id=None, envs=None, ip=None, items=None, scale_strategy=None, max_replica_count=None, min_replica_count=None, advanced=None, triggers=None, volumes=None, liveness_probe=None, startup_probe=None, readiness_probe=None, post_start=None, pre_stop=None, log_paths=None, cloud_storage_log_paths=None, instrumentation=None, path=None, port=None, metrics=None):
|
|
82
84
|
"""ConfigurationRequestDataSpec
|
|
83
85
|
|
|
84
86
|
The model defined in huaweicloud sdk
|
|
@@ -129,8 +131,10 @@ class ConfigurationRequestDataSpec:
|
|
|
129
131
|
:type post_start: :class:`huaweicloudsdkcae.v1.ConfigurationRequestDataSpecPostStart`
|
|
130
132
|
:param pre_stop:
|
|
131
133
|
:type pre_stop: :class:`huaweicloudsdkcae.v1.ConfigurationRequestDataSpecPreStop`
|
|
132
|
-
:param log_paths:
|
|
134
|
+
:param log_paths: 自定义本地磁盘日志路径数组。 ConfigurationItem.type为\"log\"时,配置此参数。
|
|
133
135
|
:type log_paths: list[str]
|
|
136
|
+
:param cloud_storage_log_paths: 自定义云存储日志路径数组。 ConfigurationItem.type为\"log\"时,配置此参数。
|
|
137
|
+
:type cloud_storage_log_paths: list[:class:`huaweicloudsdkcae.v1.CloudStorageLogPathInfo`]
|
|
134
138
|
:param instrumentation: 探针注入方式。 ConfigurationItem.type为\"apm2\"时,配置此参数。
|
|
135
139
|
:type instrumentation: str
|
|
136
140
|
:param path: 自定义监控指标配置采集路径。 ConfigurationItem.type为\"customMetric\"时,配置此参数。
|
|
@@ -167,6 +171,7 @@ class ConfigurationRequestDataSpec:
|
|
|
167
171
|
self._post_start = None
|
|
168
172
|
self._pre_stop = None
|
|
169
173
|
self._log_paths = None
|
|
174
|
+
self._cloud_storage_log_paths = None
|
|
170
175
|
self._instrumentation = None
|
|
171
176
|
self._path = None
|
|
172
177
|
self._port = None
|
|
@@ -221,6 +226,8 @@ class ConfigurationRequestDataSpec:
|
|
|
221
226
|
self.pre_stop = pre_stop
|
|
222
227
|
if log_paths is not None:
|
|
223
228
|
self.log_paths = log_paths
|
|
229
|
+
if cloud_storage_log_paths is not None:
|
|
230
|
+
self.cloud_storage_log_paths = cloud_storage_log_paths
|
|
224
231
|
if instrumentation is not None:
|
|
225
232
|
self.instrumentation = instrumentation
|
|
226
233
|
if path is not None:
|
|
@@ -716,7 +723,7 @@ class ConfigurationRequestDataSpec:
|
|
|
716
723
|
def log_paths(self):
|
|
717
724
|
"""Gets the log_paths of this ConfigurationRequestDataSpec.
|
|
718
725
|
|
|
719
|
-
|
|
726
|
+
自定义本地磁盘日志路径数组。 ConfigurationItem.type为\"log\"时,配置此参数。
|
|
720
727
|
|
|
721
728
|
:return: The log_paths of this ConfigurationRequestDataSpec.
|
|
722
729
|
:rtype: list[str]
|
|
@@ -727,13 +734,35 @@ class ConfigurationRequestDataSpec:
|
|
|
727
734
|
def log_paths(self, log_paths):
|
|
728
735
|
"""Sets the log_paths of this ConfigurationRequestDataSpec.
|
|
729
736
|
|
|
730
|
-
|
|
737
|
+
自定义本地磁盘日志路径数组。 ConfigurationItem.type为\"log\"时,配置此参数。
|
|
731
738
|
|
|
732
739
|
:param log_paths: The log_paths of this ConfigurationRequestDataSpec.
|
|
733
740
|
:type log_paths: list[str]
|
|
734
741
|
"""
|
|
735
742
|
self._log_paths = log_paths
|
|
736
743
|
|
|
744
|
+
@property
|
|
745
|
+
def cloud_storage_log_paths(self):
|
|
746
|
+
"""Gets the cloud_storage_log_paths of this ConfigurationRequestDataSpec.
|
|
747
|
+
|
|
748
|
+
自定义云存储日志路径数组。 ConfigurationItem.type为\"log\"时,配置此参数。
|
|
749
|
+
|
|
750
|
+
:return: The cloud_storage_log_paths of this ConfigurationRequestDataSpec.
|
|
751
|
+
:rtype: list[:class:`huaweicloudsdkcae.v1.CloudStorageLogPathInfo`]
|
|
752
|
+
"""
|
|
753
|
+
return self._cloud_storage_log_paths
|
|
754
|
+
|
|
755
|
+
@cloud_storage_log_paths.setter
|
|
756
|
+
def cloud_storage_log_paths(self, cloud_storage_log_paths):
|
|
757
|
+
"""Sets the cloud_storage_log_paths of this ConfigurationRequestDataSpec.
|
|
758
|
+
|
|
759
|
+
自定义云存储日志路径数组。 ConfigurationItem.type为\"log\"时,配置此参数。
|
|
760
|
+
|
|
761
|
+
:param cloud_storage_log_paths: The cloud_storage_log_paths of this ConfigurationRequestDataSpec.
|
|
762
|
+
:type cloud_storage_log_paths: list[:class:`huaweicloudsdkcae.v1.CloudStorageLogPathInfo`]
|
|
763
|
+
"""
|
|
764
|
+
self._cloud_storage_log_paths = cloud_storage_log_paths
|
|
765
|
+
|
|
737
766
|
@property
|
|
738
767
|
def instrumentation(self):
|
|
739
768
|
"""Gets the instrumentation of this ConfigurationRequestDataSpec.
|
|
@@ -41,6 +41,7 @@ class ConfigurationResponseDataSpec:
|
|
|
41
41
|
'post_start': 'ConfigurationResponseDataSpecPostStart',
|
|
42
42
|
'pre_stop': 'ConfigurationResponseDataSpecPreStop',
|
|
43
43
|
'log_paths': 'list[str]',
|
|
44
|
+
'cloud_storage_log_paths': 'list[CloudStorageLogPathInfo]',
|
|
44
45
|
'instrumentation': 'str',
|
|
45
46
|
'apm_application': 'str',
|
|
46
47
|
'type': 'str',
|
|
@@ -82,6 +83,7 @@ class ConfigurationResponseDataSpec:
|
|
|
82
83
|
'post_start': 'postStart',
|
|
83
84
|
'pre_stop': 'preStop',
|
|
84
85
|
'log_paths': 'log_paths',
|
|
86
|
+
'cloud_storage_log_paths': 'cloud_storage_log_paths',
|
|
85
87
|
'instrumentation': 'instrumentation',
|
|
86
88
|
'apm_application': 'apm_application',
|
|
87
89
|
'type': 'type',
|
|
@@ -98,7 +100,7 @@ class ConfigurationResponseDataSpec:
|
|
|
98
100
|
'metrics': 'metrics'
|
|
99
101
|
}
|
|
100
102
|
|
|
101
|
-
def __init__(self, rds_id=None, rds_db_name=None, rds_address=None, rds_username=None, rds_password=None, rds_port=None, config_center_addr=None, service_center_addr=None, cse_id=None, envs=None, ip=None, items=None, scale_strategy=None, max_replica_count=None, min_replica_count=None, advanced=None, triggers=None, volumes=None, liveness_probe=None, startup_probe=None, readiness_probe=None, post_start=None, pre_stop=None, log_paths=None, instrumentation=None, apm_application=None, type=None, app_name=None, instance_name=None, env_name=None, image_pull_policy=None, version=None, access_key=None, access_value=None, business=None, path=None, port=None, metrics=None):
|
|
103
|
+
def __init__(self, rds_id=None, rds_db_name=None, rds_address=None, rds_username=None, rds_password=None, rds_port=None, config_center_addr=None, service_center_addr=None, cse_id=None, envs=None, ip=None, items=None, scale_strategy=None, max_replica_count=None, min_replica_count=None, advanced=None, triggers=None, volumes=None, liveness_probe=None, startup_probe=None, readiness_probe=None, post_start=None, pre_stop=None, log_paths=None, cloud_storage_log_paths=None, instrumentation=None, apm_application=None, type=None, app_name=None, instance_name=None, env_name=None, image_pull_policy=None, version=None, access_key=None, access_value=None, business=None, path=None, port=None, metrics=None):
|
|
102
104
|
"""ConfigurationResponseDataSpec
|
|
103
105
|
|
|
104
106
|
The model defined in huaweicloud sdk
|
|
@@ -149,8 +151,10 @@ class ConfigurationResponseDataSpec:
|
|
|
149
151
|
:type post_start: :class:`huaweicloudsdkcae.v1.ConfigurationResponseDataSpecPostStart`
|
|
150
152
|
:param pre_stop:
|
|
151
153
|
:type pre_stop: :class:`huaweicloudsdkcae.v1.ConfigurationResponseDataSpecPreStop`
|
|
152
|
-
:param log_paths:
|
|
154
|
+
:param log_paths: 自定义本地磁盘日志路径数组。 Configuration.type为\"log\"时,返回此参数。
|
|
153
155
|
:type log_paths: list[str]
|
|
156
|
+
:param cloud_storage_log_paths: 自定义云存储日志路径数组。 Configuration.type为\"log\"时,返回此参数。
|
|
157
|
+
:type cloud_storage_log_paths: list[:class:`huaweicloudsdkcae.v1.CloudStorageLogPathInfo`]
|
|
154
158
|
:param instrumentation: 探针注入方式。 Configuration.type为\"apm2\"时,返回此参数。
|
|
155
159
|
:type instrumentation: str
|
|
156
160
|
:param apm_application: apm2应用。 Configuration.type为\"apm2\"时,返回此参数。
|
|
@@ -207,6 +211,7 @@ class ConfigurationResponseDataSpec:
|
|
|
207
211
|
self._post_start = None
|
|
208
212
|
self._pre_stop = None
|
|
209
213
|
self._log_paths = None
|
|
214
|
+
self._cloud_storage_log_paths = None
|
|
210
215
|
self._instrumentation = None
|
|
211
216
|
self._apm_application = None
|
|
212
217
|
self._type = None
|
|
@@ -271,6 +276,8 @@ class ConfigurationResponseDataSpec:
|
|
|
271
276
|
self.pre_stop = pre_stop
|
|
272
277
|
if log_paths is not None:
|
|
273
278
|
self.log_paths = log_paths
|
|
279
|
+
if cloud_storage_log_paths is not None:
|
|
280
|
+
self.cloud_storage_log_paths = cloud_storage_log_paths
|
|
274
281
|
if instrumentation is not None:
|
|
275
282
|
self.instrumentation = instrumentation
|
|
276
283
|
if apm_application is not None:
|
|
@@ -786,7 +793,7 @@ class ConfigurationResponseDataSpec:
|
|
|
786
793
|
def log_paths(self):
|
|
787
794
|
"""Gets the log_paths of this ConfigurationResponseDataSpec.
|
|
788
795
|
|
|
789
|
-
|
|
796
|
+
自定义本地磁盘日志路径数组。 Configuration.type为\"log\"时,返回此参数。
|
|
790
797
|
|
|
791
798
|
:return: The log_paths of this ConfigurationResponseDataSpec.
|
|
792
799
|
:rtype: list[str]
|
|
@@ -797,13 +804,35 @@ class ConfigurationResponseDataSpec:
|
|
|
797
804
|
def log_paths(self, log_paths):
|
|
798
805
|
"""Sets the log_paths of this ConfigurationResponseDataSpec.
|
|
799
806
|
|
|
800
|
-
|
|
807
|
+
自定义本地磁盘日志路径数组。 Configuration.type为\"log\"时,返回此参数。
|
|
801
808
|
|
|
802
809
|
:param log_paths: The log_paths of this ConfigurationResponseDataSpec.
|
|
803
810
|
:type log_paths: list[str]
|
|
804
811
|
"""
|
|
805
812
|
self._log_paths = log_paths
|
|
806
813
|
|
|
814
|
+
@property
|
|
815
|
+
def cloud_storage_log_paths(self):
|
|
816
|
+
"""Gets the cloud_storage_log_paths of this ConfigurationResponseDataSpec.
|
|
817
|
+
|
|
818
|
+
自定义云存储日志路径数组。 Configuration.type为\"log\"时,返回此参数。
|
|
819
|
+
|
|
820
|
+
:return: The cloud_storage_log_paths of this ConfigurationResponseDataSpec.
|
|
821
|
+
:rtype: list[:class:`huaweicloudsdkcae.v1.CloudStorageLogPathInfo`]
|
|
822
|
+
"""
|
|
823
|
+
return self._cloud_storage_log_paths
|
|
824
|
+
|
|
825
|
+
@cloud_storage_log_paths.setter
|
|
826
|
+
def cloud_storage_log_paths(self, cloud_storage_log_paths):
|
|
827
|
+
"""Sets the cloud_storage_log_paths of this ConfigurationResponseDataSpec.
|
|
828
|
+
|
|
829
|
+
自定义云存储日志路径数组。 Configuration.type为\"log\"时,返回此参数。
|
|
830
|
+
|
|
831
|
+
:param cloud_storage_log_paths: The cloud_storage_log_paths of this ConfigurationResponseDataSpec.
|
|
832
|
+
:type cloud_storage_log_paths: list[:class:`huaweicloudsdkcae.v1.CloudStorageLogPathInfo`]
|
|
833
|
+
"""
|
|
834
|
+
self._cloud_storage_log_paths = cloud_storage_log_paths
|
|
835
|
+
|
|
807
836
|
@property
|
|
808
837
|
def instrumentation(self):
|
|
809
838
|
"""Gets the instrumentation of this ConfigurationResponseDataSpec.
|
|
@@ -55,10 +55,8 @@ class CreateComponentRequestBody:
|
|
|
55
55
|
|
|
56
56
|
self.api_version = api_version
|
|
57
57
|
self.kind = kind
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
if spec is not None:
|
|
61
|
-
self.spec = spec
|
|
58
|
+
self.metadata = metadata
|
|
59
|
+
self.spec = spec
|
|
62
60
|
|
|
63
61
|
@property
|
|
64
62
|
def api_version(self):
|