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
|
@@ -20,17 +20,19 @@ class ListComponentConfigurationsRequest:
|
|
|
20
20
|
'application_id': 'str',
|
|
21
21
|
'component_id': 'str',
|
|
22
22
|
'x_enterprise_project_id': 'str',
|
|
23
|
-
'x_environment_id': 'str'
|
|
23
|
+
'x_environment_id': 'str',
|
|
24
|
+
'display_mode': 'str'
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
attribute_map = {
|
|
27
28
|
'application_id': 'application_id',
|
|
28
29
|
'component_id': 'component_id',
|
|
29
30
|
'x_enterprise_project_id': 'X-Enterprise-Project-ID',
|
|
30
|
-
'x_environment_id': 'X-Environment-ID'
|
|
31
|
+
'x_environment_id': 'X-Environment-ID',
|
|
32
|
+
'display_mode': 'displayMode'
|
|
31
33
|
}
|
|
32
34
|
|
|
33
|
-
def __init__(self, application_id=None, component_id=None, x_enterprise_project_id=None, x_environment_id=None):
|
|
35
|
+
def __init__(self, application_id=None, component_id=None, x_enterprise_project_id=None, x_environment_id=None, display_mode=None):
|
|
34
36
|
"""ListComponentConfigurationsRequest
|
|
35
37
|
|
|
36
38
|
The model defined in huaweicloud sdk
|
|
@@ -43,6 +45,8 @@ class ListComponentConfigurationsRequest:
|
|
|
43
45
|
:type x_enterprise_project_id: str
|
|
44
46
|
:param x_environment_id: 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
45
47
|
:type x_environment_id: str
|
|
48
|
+
:param display_mode: 显示模式,当前只支持“latestEffective”,即只显示最后一次生效配置。
|
|
49
|
+
:type display_mode: str
|
|
46
50
|
"""
|
|
47
51
|
|
|
48
52
|
|
|
@@ -51,6 +55,7 @@ class ListComponentConfigurationsRequest:
|
|
|
51
55
|
self._component_id = None
|
|
52
56
|
self._x_enterprise_project_id = None
|
|
53
57
|
self._x_environment_id = None
|
|
58
|
+
self._display_mode = None
|
|
54
59
|
self.discriminator = None
|
|
55
60
|
|
|
56
61
|
self.application_id = application_id
|
|
@@ -58,6 +63,8 @@ class ListComponentConfigurationsRequest:
|
|
|
58
63
|
if x_enterprise_project_id is not None:
|
|
59
64
|
self.x_enterprise_project_id = x_enterprise_project_id
|
|
60
65
|
self.x_environment_id = x_environment_id
|
|
66
|
+
if display_mode is not None:
|
|
67
|
+
self.display_mode = display_mode
|
|
61
68
|
|
|
62
69
|
@property
|
|
63
70
|
def application_id(self):
|
|
@@ -147,6 +154,28 @@ class ListComponentConfigurationsRequest:
|
|
|
147
154
|
"""
|
|
148
155
|
self._x_environment_id = x_environment_id
|
|
149
156
|
|
|
157
|
+
@property
|
|
158
|
+
def display_mode(self):
|
|
159
|
+
"""Gets the display_mode of this ListComponentConfigurationsRequest.
|
|
160
|
+
|
|
161
|
+
显示模式,当前只支持“latestEffective”,即只显示最后一次生效配置。
|
|
162
|
+
|
|
163
|
+
:return: The display_mode of this ListComponentConfigurationsRequest.
|
|
164
|
+
:rtype: str
|
|
165
|
+
"""
|
|
166
|
+
return self._display_mode
|
|
167
|
+
|
|
168
|
+
@display_mode.setter
|
|
169
|
+
def display_mode(self, display_mode):
|
|
170
|
+
"""Sets the display_mode of this ListComponentConfigurationsRequest.
|
|
171
|
+
|
|
172
|
+
显示模式,当前只支持“latestEffective”,即只显示最后一次生效配置。
|
|
173
|
+
|
|
174
|
+
:param display_mode: The display_mode of this ListComponentConfigurationsRequest.
|
|
175
|
+
:type display_mode: str
|
|
176
|
+
"""
|
|
177
|
+
self._display_mode = display_mode
|
|
178
|
+
|
|
150
179
|
def to_dict(self):
|
|
151
180
|
"""Returns the model properties as a dict"""
|
|
152
181
|
result = {}
|
|
@@ -21,7 +21,9 @@ class ListComponentsRequest:
|
|
|
21
21
|
'x_enterprise_project_id': 'str',
|
|
22
22
|
'x_environment_id': 'str',
|
|
23
23
|
'limit': 'str',
|
|
24
|
-
'offset': 'str'
|
|
24
|
+
'offset': 'str',
|
|
25
|
+
'sort_key': 'str',
|
|
26
|
+
'sort': 'str'
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
attribute_map = {
|
|
@@ -29,10 +31,12 @@ class ListComponentsRequest:
|
|
|
29
31
|
'x_enterprise_project_id': 'X-Enterprise-Project-ID',
|
|
30
32
|
'x_environment_id': 'X-Environment-ID',
|
|
31
33
|
'limit': 'limit',
|
|
32
|
-
'offset': 'offset'
|
|
34
|
+
'offset': 'offset',
|
|
35
|
+
'sort_key': 'sort_key',
|
|
36
|
+
'sort': 'sort'
|
|
33
37
|
}
|
|
34
38
|
|
|
35
|
-
def __init__(self, application_id=None, x_enterprise_project_id=None, x_environment_id=None, limit=None, offset=None):
|
|
39
|
+
def __init__(self, application_id=None, x_enterprise_project_id=None, x_environment_id=None, limit=None, offset=None, sort_key=None, sort=None):
|
|
36
40
|
"""ListComponentsRequest
|
|
37
41
|
|
|
38
42
|
The model defined in huaweicloud sdk
|
|
@@ -47,6 +51,10 @@ class ListComponentsRequest:
|
|
|
47
51
|
:type limit: str
|
|
48
52
|
:param offset: 分页偏移位,查询起始位置。
|
|
49
53
|
:type offset: str
|
|
54
|
+
:param sort_key: 排序字段。
|
|
55
|
+
:type sort_key: str
|
|
56
|
+
:param sort: 升降序规则。
|
|
57
|
+
:type sort: str
|
|
50
58
|
"""
|
|
51
59
|
|
|
52
60
|
|
|
@@ -56,6 +64,8 @@ class ListComponentsRequest:
|
|
|
56
64
|
self._x_environment_id = None
|
|
57
65
|
self._limit = None
|
|
58
66
|
self._offset = None
|
|
67
|
+
self._sort_key = None
|
|
68
|
+
self._sort = None
|
|
59
69
|
self.discriminator = None
|
|
60
70
|
|
|
61
71
|
self.application_id = application_id
|
|
@@ -66,6 +76,10 @@ class ListComponentsRequest:
|
|
|
66
76
|
self.limit = limit
|
|
67
77
|
if offset is not None:
|
|
68
78
|
self.offset = offset
|
|
79
|
+
if sort_key is not None:
|
|
80
|
+
self.sort_key = sort_key
|
|
81
|
+
if sort is not None:
|
|
82
|
+
self.sort = sort
|
|
69
83
|
|
|
70
84
|
@property
|
|
71
85
|
def application_id(self):
|
|
@@ -177,6 +191,50 @@ class ListComponentsRequest:
|
|
|
177
191
|
"""
|
|
178
192
|
self._offset = offset
|
|
179
193
|
|
|
194
|
+
@property
|
|
195
|
+
def sort_key(self):
|
|
196
|
+
"""Gets the sort_key of this ListComponentsRequest.
|
|
197
|
+
|
|
198
|
+
排序字段。
|
|
199
|
+
|
|
200
|
+
:return: The sort_key of this ListComponentsRequest.
|
|
201
|
+
:rtype: str
|
|
202
|
+
"""
|
|
203
|
+
return self._sort_key
|
|
204
|
+
|
|
205
|
+
@sort_key.setter
|
|
206
|
+
def sort_key(self, sort_key):
|
|
207
|
+
"""Sets the sort_key of this ListComponentsRequest.
|
|
208
|
+
|
|
209
|
+
排序字段。
|
|
210
|
+
|
|
211
|
+
:param sort_key: The sort_key of this ListComponentsRequest.
|
|
212
|
+
:type sort_key: str
|
|
213
|
+
"""
|
|
214
|
+
self._sort_key = sort_key
|
|
215
|
+
|
|
216
|
+
@property
|
|
217
|
+
def sort(self):
|
|
218
|
+
"""Gets the sort of this ListComponentsRequest.
|
|
219
|
+
|
|
220
|
+
升降序规则。
|
|
221
|
+
|
|
222
|
+
:return: The sort of this ListComponentsRequest.
|
|
223
|
+
:rtype: str
|
|
224
|
+
"""
|
|
225
|
+
return self._sort
|
|
226
|
+
|
|
227
|
+
@sort.setter
|
|
228
|
+
def sort(self, sort):
|
|
229
|
+
"""Sets the sort of this ListComponentsRequest.
|
|
230
|
+
|
|
231
|
+
升降序规则。
|
|
232
|
+
|
|
233
|
+
:param sort: The sort of this ListComponentsRequest.
|
|
234
|
+
:type sort: str
|
|
235
|
+
"""
|
|
236
|
+
self._sort = sort
|
|
237
|
+
|
|
180
238
|
def to_dict(self):
|
|
181
239
|
"""Returns the model properties as a dict"""
|
|
182
240
|
result = {}
|
|
@@ -18,21 +18,25 @@ class ListEipResponseBodySpecEgress:
|
|
|
18
18
|
|
|
19
19
|
openapi_types = {
|
|
20
20
|
'bandwidth_size': 'int',
|
|
21
|
+
'enabled': 'bool',
|
|
21
22
|
'ip_list': 'list[str]'
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
attribute_map = {
|
|
25
26
|
'bandwidth_size': 'bandwidth_size',
|
|
27
|
+
'enabled': 'enabled',
|
|
26
28
|
'ip_list': 'ip_list'
|
|
27
29
|
}
|
|
28
30
|
|
|
29
|
-
def __init__(self, bandwidth_size=None, ip_list=None):
|
|
31
|
+
def __init__(self, bandwidth_size=None, enabled=None, ip_list=None):
|
|
30
32
|
"""ListEipResponseBodySpecEgress
|
|
31
33
|
|
|
32
34
|
The model defined in huaweicloud sdk
|
|
33
35
|
|
|
34
36
|
:param bandwidth_size: 出网IP带宽。
|
|
35
37
|
:type bandwidth_size: int
|
|
38
|
+
:param enabled: 是否关闭出网IP。
|
|
39
|
+
:type enabled: bool
|
|
36
40
|
:param ip_list: 出网IP列表。
|
|
37
41
|
:type ip_list: list[str]
|
|
38
42
|
"""
|
|
@@ -40,11 +44,14 @@ class ListEipResponseBodySpecEgress:
|
|
|
40
44
|
|
|
41
45
|
|
|
42
46
|
self._bandwidth_size = None
|
|
47
|
+
self._enabled = None
|
|
43
48
|
self._ip_list = None
|
|
44
49
|
self.discriminator = None
|
|
45
50
|
|
|
46
51
|
if bandwidth_size is not None:
|
|
47
52
|
self.bandwidth_size = bandwidth_size
|
|
53
|
+
if enabled is not None:
|
|
54
|
+
self.enabled = enabled
|
|
48
55
|
if ip_list is not None:
|
|
49
56
|
self.ip_list = ip_list
|
|
50
57
|
|
|
@@ -70,6 +77,28 @@ class ListEipResponseBodySpecEgress:
|
|
|
70
77
|
"""
|
|
71
78
|
self._bandwidth_size = bandwidth_size
|
|
72
79
|
|
|
80
|
+
@property
|
|
81
|
+
def enabled(self):
|
|
82
|
+
"""Gets the enabled of this ListEipResponseBodySpecEgress.
|
|
83
|
+
|
|
84
|
+
是否关闭出网IP。
|
|
85
|
+
|
|
86
|
+
:return: The enabled of this ListEipResponseBodySpecEgress.
|
|
87
|
+
:rtype: bool
|
|
88
|
+
"""
|
|
89
|
+
return self._enabled
|
|
90
|
+
|
|
91
|
+
@enabled.setter
|
|
92
|
+
def enabled(self, enabled):
|
|
93
|
+
"""Sets the enabled of this ListEipResponseBodySpecEgress.
|
|
94
|
+
|
|
95
|
+
是否关闭出网IP。
|
|
96
|
+
|
|
97
|
+
:param enabled: The enabled of this ListEipResponseBodySpecEgress.
|
|
98
|
+
:type enabled: bool
|
|
99
|
+
"""
|
|
100
|
+
self._enabled = enabled
|
|
101
|
+
|
|
73
102
|
@property
|
|
74
103
|
def ip_list(self):
|
|
75
104
|
"""Gets the ip_list of this ListEipResponseBodySpecEgress.
|
|
@@ -18,21 +18,25 @@ class ListEipResponseBodySpecIngress:
|
|
|
18
18
|
|
|
19
19
|
openapi_types = {
|
|
20
20
|
'bandwidth_size': 'int',
|
|
21
|
+
'enabled': 'bool',
|
|
21
22
|
'ip_list': 'list[str]'
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
attribute_map = {
|
|
25
26
|
'bandwidth_size': 'bandwidth_size',
|
|
27
|
+
'enabled': 'enabled',
|
|
26
28
|
'ip_list': 'ip_list'
|
|
27
29
|
}
|
|
28
30
|
|
|
29
|
-
def __init__(self, bandwidth_size=None, ip_list=None):
|
|
31
|
+
def __init__(self, bandwidth_size=None, enabled=None, ip_list=None):
|
|
30
32
|
"""ListEipResponseBodySpecIngress
|
|
31
33
|
|
|
32
34
|
The model defined in huaweicloud sdk
|
|
33
35
|
|
|
34
36
|
:param bandwidth_size: 入网IP带宽
|
|
35
37
|
:type bandwidth_size: int
|
|
38
|
+
:param enabled: 是否关闭入网IP。
|
|
39
|
+
:type enabled: bool
|
|
36
40
|
:param ip_list: 入网IP列表
|
|
37
41
|
:type ip_list: list[str]
|
|
38
42
|
"""
|
|
@@ -40,11 +44,14 @@ class ListEipResponseBodySpecIngress:
|
|
|
40
44
|
|
|
41
45
|
|
|
42
46
|
self._bandwidth_size = None
|
|
47
|
+
self._enabled = None
|
|
43
48
|
self._ip_list = None
|
|
44
49
|
self.discriminator = None
|
|
45
50
|
|
|
46
51
|
if bandwidth_size is not None:
|
|
47
52
|
self.bandwidth_size = bandwidth_size
|
|
53
|
+
if enabled is not None:
|
|
54
|
+
self.enabled = enabled
|
|
48
55
|
if ip_list is not None:
|
|
49
56
|
self.ip_list = ip_list
|
|
50
57
|
|
|
@@ -70,6 +77,28 @@ class ListEipResponseBodySpecIngress:
|
|
|
70
77
|
"""
|
|
71
78
|
self._bandwidth_size = bandwidth_size
|
|
72
79
|
|
|
80
|
+
@property
|
|
81
|
+
def enabled(self):
|
|
82
|
+
"""Gets the enabled of this ListEipResponseBodySpecIngress.
|
|
83
|
+
|
|
84
|
+
是否关闭入网IP。
|
|
85
|
+
|
|
86
|
+
:return: The enabled of this ListEipResponseBodySpecIngress.
|
|
87
|
+
:rtype: bool
|
|
88
|
+
"""
|
|
89
|
+
return self._enabled
|
|
90
|
+
|
|
91
|
+
@enabled.setter
|
|
92
|
+
def enabled(self, enabled):
|
|
93
|
+
"""Sets the enabled of this ListEipResponseBodySpecIngress.
|
|
94
|
+
|
|
95
|
+
是否关闭入网IP。
|
|
96
|
+
|
|
97
|
+
:param enabled: The enabled of this ListEipResponseBodySpecIngress.
|
|
98
|
+
:type enabled: bool
|
|
99
|
+
"""
|
|
100
|
+
self._enabled = enabled
|
|
101
|
+
|
|
73
102
|
@property
|
|
74
103
|
def ip_list(self):
|
|
75
104
|
"""Gets the ip_list of this ListEipResponseBodySpecIngress.
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ListNoticeRulesRequest:
|
|
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
|
+
'x_enterprise_project_id': 'str',
|
|
21
|
+
'x_environment_id': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'x_enterprise_project_id': 'X-Enterprise-Project-ID',
|
|
26
|
+
'x_environment_id': 'X-Environment-ID'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, x_enterprise_project_id=None, x_environment_id=None):
|
|
30
|
+
"""ListNoticeRulesRequest
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
35
|
+
:type x_enterprise_project_id: str
|
|
36
|
+
:param x_environment_id: 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
37
|
+
:type x_environment_id: str
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._x_enterprise_project_id = None
|
|
43
|
+
self._x_environment_id = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
if x_enterprise_project_id is not None:
|
|
47
|
+
self.x_enterprise_project_id = x_enterprise_project_id
|
|
48
|
+
self.x_environment_id = x_environment_id
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def x_enterprise_project_id(self):
|
|
52
|
+
"""Gets the x_enterprise_project_id of this ListNoticeRulesRequest.
|
|
53
|
+
|
|
54
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
55
|
+
|
|
56
|
+
:return: The x_enterprise_project_id of this ListNoticeRulesRequest.
|
|
57
|
+
:rtype: str
|
|
58
|
+
"""
|
|
59
|
+
return self._x_enterprise_project_id
|
|
60
|
+
|
|
61
|
+
@x_enterprise_project_id.setter
|
|
62
|
+
def x_enterprise_project_id(self, x_enterprise_project_id):
|
|
63
|
+
"""Sets the x_enterprise_project_id of this ListNoticeRulesRequest.
|
|
64
|
+
|
|
65
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
66
|
+
|
|
67
|
+
:param x_enterprise_project_id: The x_enterprise_project_id of this ListNoticeRulesRequest.
|
|
68
|
+
:type x_enterprise_project_id: str
|
|
69
|
+
"""
|
|
70
|
+
self._x_enterprise_project_id = x_enterprise_project_id
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def x_environment_id(self):
|
|
74
|
+
"""Gets the x_environment_id of this ListNoticeRulesRequest.
|
|
75
|
+
|
|
76
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
77
|
+
|
|
78
|
+
:return: The x_environment_id of this ListNoticeRulesRequest.
|
|
79
|
+
:rtype: str
|
|
80
|
+
"""
|
|
81
|
+
return self._x_environment_id
|
|
82
|
+
|
|
83
|
+
@x_environment_id.setter
|
|
84
|
+
def x_environment_id(self, x_environment_id):
|
|
85
|
+
"""Sets the x_environment_id of this ListNoticeRulesRequest.
|
|
86
|
+
|
|
87
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
88
|
+
|
|
89
|
+
:param x_environment_id: The x_environment_id of this ListNoticeRulesRequest.
|
|
90
|
+
:type x_environment_id: str
|
|
91
|
+
"""
|
|
92
|
+
self._x_environment_id = x_environment_id
|
|
93
|
+
|
|
94
|
+
def to_dict(self):
|
|
95
|
+
"""Returns the model properties as a dict"""
|
|
96
|
+
result = {}
|
|
97
|
+
|
|
98
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
99
|
+
value = getattr(self, attr)
|
|
100
|
+
if isinstance(value, list):
|
|
101
|
+
result[attr] = list(map(
|
|
102
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
103
|
+
value
|
|
104
|
+
))
|
|
105
|
+
elif hasattr(value, "to_dict"):
|
|
106
|
+
result[attr] = value.to_dict()
|
|
107
|
+
elif isinstance(value, dict):
|
|
108
|
+
result[attr] = dict(map(
|
|
109
|
+
lambda item: (item[0], item[1].to_dict())
|
|
110
|
+
if hasattr(item[1], "to_dict") else item,
|
|
111
|
+
value.items()
|
|
112
|
+
))
|
|
113
|
+
else:
|
|
114
|
+
if attr in self.sensitive_list:
|
|
115
|
+
result[attr] = "****"
|
|
116
|
+
else:
|
|
117
|
+
result[attr] = value
|
|
118
|
+
|
|
119
|
+
return result
|
|
120
|
+
|
|
121
|
+
def to_str(self):
|
|
122
|
+
"""Returns the string representation of the model"""
|
|
123
|
+
import simplejson as json
|
|
124
|
+
if six.PY2:
|
|
125
|
+
import sys
|
|
126
|
+
reload(sys)
|
|
127
|
+
sys.setdefaultencoding("utf-8")
|
|
128
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
129
|
+
|
|
130
|
+
def __repr__(self):
|
|
131
|
+
"""For `print`"""
|
|
132
|
+
return self.to_str()
|
|
133
|
+
|
|
134
|
+
def __eq__(self, other):
|
|
135
|
+
"""Returns true if both objects are equal"""
|
|
136
|
+
if not isinstance(other, ListNoticeRulesRequest):
|
|
137
|
+
return False
|
|
138
|
+
|
|
139
|
+
return self.__dict__ == other.__dict__
|
|
140
|
+
|
|
141
|
+
def __ne__(self, other):
|
|
142
|
+
"""Returns true if both objects are not equal"""
|
|
143
|
+
return not self == other
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ListNoticeRulesResponse(SdkResponse):
|
|
10
|
+
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
openapi_types (dict): The key is attribute name
|
|
14
|
+
and the value is attribute type.
|
|
15
|
+
attribute_map (dict): The key is attribute name
|
|
16
|
+
and the value is json key in definition.
|
|
17
|
+
"""
|
|
18
|
+
sensitive_list = []
|
|
19
|
+
|
|
20
|
+
openapi_types = {
|
|
21
|
+
'api_version': 'str',
|
|
22
|
+
'kind': 'str',
|
|
23
|
+
'items': 'list[CreateNoticeRuleRespItem]'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
attribute_map = {
|
|
27
|
+
'api_version': 'api_version',
|
|
28
|
+
'kind': 'kind',
|
|
29
|
+
'items': 'items'
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
def __init__(self, api_version=None, kind=None, items=None):
|
|
33
|
+
"""ListNoticeRulesResponse
|
|
34
|
+
|
|
35
|
+
The model defined in huaweicloud sdk
|
|
36
|
+
|
|
37
|
+
:param api_version: API版本,固定值“v1”,该值不可修改。
|
|
38
|
+
:type api_version: str
|
|
39
|
+
:param kind: API类型,固定值“NoticeRule”,该值不可修改。
|
|
40
|
+
:type kind: str
|
|
41
|
+
:param items: 请求数据。
|
|
42
|
+
:type items: list[:class:`huaweicloudsdkcae.v1.CreateNoticeRuleRespItem`]
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
super(ListNoticeRulesResponse, self).__init__()
|
|
46
|
+
|
|
47
|
+
self._api_version = None
|
|
48
|
+
self._kind = None
|
|
49
|
+
self._items = None
|
|
50
|
+
self.discriminator = None
|
|
51
|
+
|
|
52
|
+
if api_version is not None:
|
|
53
|
+
self.api_version = api_version
|
|
54
|
+
if kind is not None:
|
|
55
|
+
self.kind = kind
|
|
56
|
+
if items is not None:
|
|
57
|
+
self.items = items
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def api_version(self):
|
|
61
|
+
"""Gets the api_version of this ListNoticeRulesResponse.
|
|
62
|
+
|
|
63
|
+
API版本,固定值“v1”,该值不可修改。
|
|
64
|
+
|
|
65
|
+
:return: The api_version of this ListNoticeRulesResponse.
|
|
66
|
+
:rtype: str
|
|
67
|
+
"""
|
|
68
|
+
return self._api_version
|
|
69
|
+
|
|
70
|
+
@api_version.setter
|
|
71
|
+
def api_version(self, api_version):
|
|
72
|
+
"""Sets the api_version of this ListNoticeRulesResponse.
|
|
73
|
+
|
|
74
|
+
API版本,固定值“v1”,该值不可修改。
|
|
75
|
+
|
|
76
|
+
:param api_version: The api_version of this ListNoticeRulesResponse.
|
|
77
|
+
:type api_version: str
|
|
78
|
+
"""
|
|
79
|
+
self._api_version = api_version
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def kind(self):
|
|
83
|
+
"""Gets the kind of this ListNoticeRulesResponse.
|
|
84
|
+
|
|
85
|
+
API类型,固定值“NoticeRule”,该值不可修改。
|
|
86
|
+
|
|
87
|
+
:return: The kind of this ListNoticeRulesResponse.
|
|
88
|
+
:rtype: str
|
|
89
|
+
"""
|
|
90
|
+
return self._kind
|
|
91
|
+
|
|
92
|
+
@kind.setter
|
|
93
|
+
def kind(self, kind):
|
|
94
|
+
"""Sets the kind of this ListNoticeRulesResponse.
|
|
95
|
+
|
|
96
|
+
API类型,固定值“NoticeRule”,该值不可修改。
|
|
97
|
+
|
|
98
|
+
:param kind: The kind of this ListNoticeRulesResponse.
|
|
99
|
+
:type kind: str
|
|
100
|
+
"""
|
|
101
|
+
self._kind = kind
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def items(self):
|
|
105
|
+
"""Gets the items of this ListNoticeRulesResponse.
|
|
106
|
+
|
|
107
|
+
请求数据。
|
|
108
|
+
|
|
109
|
+
:return: The items of this ListNoticeRulesResponse.
|
|
110
|
+
:rtype: list[:class:`huaweicloudsdkcae.v1.CreateNoticeRuleRespItem`]
|
|
111
|
+
"""
|
|
112
|
+
return self._items
|
|
113
|
+
|
|
114
|
+
@items.setter
|
|
115
|
+
def items(self, items):
|
|
116
|
+
"""Sets the items of this ListNoticeRulesResponse.
|
|
117
|
+
|
|
118
|
+
请求数据。
|
|
119
|
+
|
|
120
|
+
:param items: The items of this ListNoticeRulesResponse.
|
|
121
|
+
:type items: list[:class:`huaweicloudsdkcae.v1.CreateNoticeRuleRespItem`]
|
|
122
|
+
"""
|
|
123
|
+
self._items = items
|
|
124
|
+
|
|
125
|
+
def to_dict(self):
|
|
126
|
+
"""Returns the model properties as a dict"""
|
|
127
|
+
result = {}
|
|
128
|
+
|
|
129
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
130
|
+
value = getattr(self, attr)
|
|
131
|
+
if isinstance(value, list):
|
|
132
|
+
result[attr] = list(map(
|
|
133
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
134
|
+
value
|
|
135
|
+
))
|
|
136
|
+
elif hasattr(value, "to_dict"):
|
|
137
|
+
result[attr] = value.to_dict()
|
|
138
|
+
elif isinstance(value, dict):
|
|
139
|
+
result[attr] = dict(map(
|
|
140
|
+
lambda item: (item[0], item[1].to_dict())
|
|
141
|
+
if hasattr(item[1], "to_dict") else item,
|
|
142
|
+
value.items()
|
|
143
|
+
))
|
|
144
|
+
else:
|
|
145
|
+
if attr in self.sensitive_list:
|
|
146
|
+
result[attr] = "****"
|
|
147
|
+
else:
|
|
148
|
+
result[attr] = value
|
|
149
|
+
|
|
150
|
+
return result
|
|
151
|
+
|
|
152
|
+
def to_str(self):
|
|
153
|
+
"""Returns the string representation of the model"""
|
|
154
|
+
import simplejson as json
|
|
155
|
+
if six.PY2:
|
|
156
|
+
import sys
|
|
157
|
+
reload(sys)
|
|
158
|
+
sys.setdefaultencoding("utf-8")
|
|
159
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
160
|
+
|
|
161
|
+
def __repr__(self):
|
|
162
|
+
"""For `print`"""
|
|
163
|
+
return self.to_str()
|
|
164
|
+
|
|
165
|
+
def __eq__(self, other):
|
|
166
|
+
"""Returns true if both objects are equal"""
|
|
167
|
+
if not isinstance(other, ListNoticeRulesResponse):
|
|
168
|
+
return False
|
|
169
|
+
|
|
170
|
+
return self.__dict__ == other.__dict__
|
|
171
|
+
|
|
172
|
+
def __ne__(self, other):
|
|
173
|
+
"""Returns true if both objects are not equal"""
|
|
174
|
+
return not self == other
|