huaweicloudsdkcae 3.1.85__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 +67 -9
- 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.85.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkcae-3.1.85.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/RECORD +68 -36
- {huaweicloudsdkcae-3.1.85.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/WHEEL +1 -1
- huaweicloudsdkcae/v1/model/event_item.py +0 -318
- {huaweicloudsdkcae-3.1.85.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcae-3.1.85.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/top_level.txt +0 -0
|
@@ -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 = {}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CloudStorageLogPathInfo:
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
Attributes:
|
|
12
|
+
openapi_types (dict): The key is attribute name
|
|
13
|
+
and the value is attribute type.
|
|
14
|
+
attribute_map (dict): The key is attribute name
|
|
15
|
+
and the value is json key in definition.
|
|
16
|
+
"""
|
|
17
|
+
sensitive_list = []
|
|
18
|
+
|
|
19
|
+
openapi_types = {
|
|
20
|
+
'dir_path': 'str',
|
|
21
|
+
'file_name_pattern': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'dir_path': 'dir_path',
|
|
26
|
+
'file_name_pattern': 'file_name_pattern'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, dir_path=None, file_name_pattern=None):
|
|
30
|
+
"""CloudStorageLogPathInfo
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param dir_path: 容器挂载路径。
|
|
35
|
+
:type dir_path: str
|
|
36
|
+
:param file_name_pattern: 日志文件名匹配模式。
|
|
37
|
+
:type file_name_pattern: str
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._dir_path = None
|
|
43
|
+
self._file_name_pattern = None
|
|
44
|
+
self.discriminator = None
|
|
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
|
+
|
|
95
|
+
def to_dict(self):
|
|
96
|
+
"""Returns the model properties as a dict"""
|
|
97
|
+
result = {}
|
|
98
|
+
|
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
100
|
+
value = getattr(self, attr)
|
|
101
|
+
if isinstance(value, list):
|
|
102
|
+
result[attr] = list(map(
|
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
104
|
+
value
|
|
105
|
+
))
|
|
106
|
+
elif hasattr(value, "to_dict"):
|
|
107
|
+
result[attr] = value.to_dict()
|
|
108
|
+
elif isinstance(value, dict):
|
|
109
|
+
result[attr] = dict(map(
|
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
|
112
|
+
value.items()
|
|
113
|
+
))
|
|
114
|
+
else:
|
|
115
|
+
if attr in self.sensitive_list:
|
|
116
|
+
result[attr] = "****"
|
|
117
|
+
else:
|
|
118
|
+
result[attr] = value
|
|
119
|
+
|
|
120
|
+
return result
|
|
121
|
+
|
|
122
|
+
def to_str(self):
|
|
123
|
+
"""Returns the string representation of the model"""
|
|
124
|
+
import simplejson as json
|
|
125
|
+
if six.PY2:
|
|
126
|
+
import sys
|
|
127
|
+
reload(sys)
|
|
128
|
+
sys.setdefaultencoding("utf-8")
|
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
130
|
+
|
|
131
|
+
def __repr__(self):
|
|
132
|
+
"""For `print`"""
|
|
133
|
+
return self.to_str()
|
|
134
|
+
|
|
135
|
+
def __eq__(self, other):
|
|
136
|
+
"""Returns true if both objects are equal"""
|
|
137
|
+
if not isinstance(other, CloudStorageLogPathInfo):
|
|
138
|
+
return False
|
|
139
|
+
|
|
140
|
+
return self.__dict__ == other.__dict__
|
|
141
|
+
|
|
142
|
+
def __ne__(self, other):
|
|
143
|
+
"""Returns true if both objects are not equal"""
|
|
144
|
+
return not self == other
|
|
@@ -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,9 +41,10 @@ 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
|
-
'port': '
|
|
47
|
+
'port': 'int',
|
|
47
48
|
'metrics': 'list[str]'
|
|
48
49
|
}
|
|
49
50
|
|
|
@@ -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,14 +131,16 @@ 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\"时,配置此参数。
|
|
137
141
|
:type path: str
|
|
138
142
|
:param port: 自定义监控指标配置采集端口。 ConfigurationItem.type为\"customMetric\"时,配置此参数。
|
|
139
|
-
:type port:
|
|
143
|
+
:type port: int
|
|
140
144
|
:param metrics: 自定义监控指标配置指标名称。 ConfigurationItem.type为\"customMetric\"时,配置此参数。
|
|
141
145
|
:type metrics: list[str]
|
|
142
146
|
"""
|
|
@@ -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.
|
|
@@ -785,7 +814,7 @@ class ConfigurationRequestDataSpec:
|
|
|
785
814
|
自定义监控指标配置采集端口。 ConfigurationItem.type为\"customMetric\"时,配置此参数。
|
|
786
815
|
|
|
787
816
|
:return: The port of this ConfigurationRequestDataSpec.
|
|
788
|
-
:rtype:
|
|
817
|
+
:rtype: int
|
|
789
818
|
"""
|
|
790
819
|
return self._port
|
|
791
820
|
|
|
@@ -796,7 +825,7 @@ class ConfigurationRequestDataSpec:
|
|
|
796
825
|
自定义监控指标配置采集端口。 ConfigurationItem.type为\"customMetric\"时,配置此参数。
|
|
797
826
|
|
|
798
827
|
:param port: The port of this ConfigurationRequestDataSpec.
|
|
799
|
-
:type port:
|
|
828
|
+
:type port: int
|
|
800
829
|
"""
|
|
801
830
|
self._port = port
|
|
802
831
|
|
|
@@ -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',
|
|
@@ -53,7 +54,7 @@ class ConfigurationResponseDataSpec:
|
|
|
53
54
|
'access_value': 'str',
|
|
54
55
|
'business': 'str',
|
|
55
56
|
'path': 'str',
|
|
56
|
-
'port': '
|
|
57
|
+
'port': 'int',
|
|
57
58
|
'metrics': 'list[str]'
|
|
58
59
|
}
|
|
59
60
|
|
|
@@ -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\"时,返回此参数。
|
|
@@ -176,7 +180,7 @@ class ConfigurationResponseDataSpec:
|
|
|
176
180
|
:param path: 自定义监控指标配置采集路径。 Configuration.type为\"customMetric\"时,返回此参数。
|
|
177
181
|
:type path: str
|
|
178
182
|
:param port: 自定义监控指标配置采集端口。 Configuration.type为\"customMetric\"时,返回此参数。
|
|
179
|
-
:type port:
|
|
183
|
+
:type port: int
|
|
180
184
|
:param metrics: 自定义监控指标配置指标名称。 Configuration.type为\"customMetric\"时,返回此参数。
|
|
181
185
|
:type metrics: list[str]
|
|
182
186
|
"""
|
|
@@ -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.
|
|
@@ -1075,7 +1104,7 @@ class ConfigurationResponseDataSpec:
|
|
|
1075
1104
|
自定义监控指标配置采集端口。 Configuration.type为\"customMetric\"时,返回此参数。
|
|
1076
1105
|
|
|
1077
1106
|
:return: The port of this ConfigurationResponseDataSpec.
|
|
1078
|
-
:rtype:
|
|
1107
|
+
:rtype: int
|
|
1079
1108
|
"""
|
|
1080
1109
|
return self._port
|
|
1081
1110
|
|
|
@@ -1086,7 +1115,7 @@ class ConfigurationResponseDataSpec:
|
|
|
1086
1115
|
自定义监控指标配置采集端口。 Configuration.type为\"customMetric\"时,返回此参数。
|
|
1087
1116
|
|
|
1088
1117
|
:param port: The port of this ConfigurationResponseDataSpec.
|
|
1089
|
-
:type port:
|
|
1118
|
+
:type port: int
|
|
1090
1119
|
"""
|
|
1091
1120
|
self._port = port
|
|
1092
1121
|
|
|
@@ -19,8 +19,8 @@ class CreateComponentRequestBody:
|
|
|
19
19
|
openapi_types = {
|
|
20
20
|
'api_version': 'ApiVersionObj',
|
|
21
21
|
'kind': 'ComponentKindObj',
|
|
22
|
-
'metadata': '
|
|
23
|
-
'spec': '
|
|
22
|
+
'metadata': 'CreateComponentWithConfigurationRequestBodyMetadata',
|
|
23
|
+
'spec': 'CreateComponentWithConfigurationRequestBodySpec'
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
attribute_map = {
|
|
@@ -40,9 +40,9 @@ class CreateComponentRequestBody:
|
|
|
40
40
|
:param kind:
|
|
41
41
|
:type kind: :class:`huaweicloudsdkcae.v1.ComponentKindObj`
|
|
42
42
|
:param metadata:
|
|
43
|
-
:type metadata: :class:`huaweicloudsdkcae.v1.
|
|
43
|
+
:type metadata: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequestBodyMetadata`
|
|
44
44
|
:param spec:
|
|
45
|
-
:type spec: :class:`huaweicloudsdkcae.v1.
|
|
45
|
+
:type spec: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequestBodySpec`
|
|
46
46
|
"""
|
|
47
47
|
|
|
48
48
|
|
|
@@ -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):
|
|
@@ -101,7 +99,7 @@ class CreateComponentRequestBody:
|
|
|
101
99
|
"""Gets the metadata of this CreateComponentRequestBody.
|
|
102
100
|
|
|
103
101
|
:return: The metadata of this CreateComponentRequestBody.
|
|
104
|
-
:rtype: :class:`huaweicloudsdkcae.v1.
|
|
102
|
+
:rtype: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequestBodyMetadata`
|
|
105
103
|
"""
|
|
106
104
|
return self._metadata
|
|
107
105
|
|
|
@@ -110,7 +108,7 @@ class CreateComponentRequestBody:
|
|
|
110
108
|
"""Sets the metadata of this CreateComponentRequestBody.
|
|
111
109
|
|
|
112
110
|
:param metadata: The metadata of this CreateComponentRequestBody.
|
|
113
|
-
:type metadata: :class:`huaweicloudsdkcae.v1.
|
|
111
|
+
:type metadata: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequestBodyMetadata`
|
|
114
112
|
"""
|
|
115
113
|
self._metadata = metadata
|
|
116
114
|
|
|
@@ -119,7 +117,7 @@ class CreateComponentRequestBody:
|
|
|
119
117
|
"""Gets the spec of this CreateComponentRequestBody.
|
|
120
118
|
|
|
121
119
|
:return: The spec of this CreateComponentRequestBody.
|
|
122
|
-
:rtype: :class:`huaweicloudsdkcae.v1.
|
|
120
|
+
:rtype: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequestBodySpec`
|
|
123
121
|
"""
|
|
124
122
|
return self._spec
|
|
125
123
|
|
|
@@ -128,7 +126,7 @@ class CreateComponentRequestBody:
|
|
|
128
126
|
"""Sets the spec of this CreateComponentRequestBody.
|
|
129
127
|
|
|
130
128
|
:param spec: The spec of this CreateComponentRequestBody.
|
|
131
|
-
:type spec: :class:`huaweicloudsdkcae.v1.
|
|
129
|
+
:type spec: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequestBodySpec`
|
|
132
130
|
"""
|
|
133
131
|
self._spec = spec
|
|
134
132
|
|