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
|
@@ -1,318 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
import six
|
|
4
|
-
|
|
5
|
-
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class EventItem:
|
|
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
|
-
'name': 'str',
|
|
21
|
-
'involved_object_kind': 'str',
|
|
22
|
-
'involved_object': 'str',
|
|
23
|
-
'message': 'str',
|
|
24
|
-
'created_at': 'str',
|
|
25
|
-
'updated_at': 'str',
|
|
26
|
-
'status': 'str',
|
|
27
|
-
'count': 'int'
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
attribute_map = {
|
|
31
|
-
'name': 'name',
|
|
32
|
-
'involved_object_kind': 'involved_object_kind',
|
|
33
|
-
'involved_object': 'involved_object',
|
|
34
|
-
'message': 'message',
|
|
35
|
-
'created_at': 'created_at',
|
|
36
|
-
'updated_at': 'updated_at',
|
|
37
|
-
'status': 'status',
|
|
38
|
-
'count': 'count'
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
def __init__(self, name=None, involved_object_kind=None, involved_object=None, message=None, created_at=None, updated_at=None, status=None, count=None):
|
|
42
|
-
"""EventItem
|
|
43
|
-
|
|
44
|
-
The model defined in huaweicloud sdk
|
|
45
|
-
|
|
46
|
-
:param name: 事件名称。
|
|
47
|
-
:type name: str
|
|
48
|
-
:param involved_object_kind: 涉及对象类型。
|
|
49
|
-
:type involved_object_kind: str
|
|
50
|
-
:param involved_object: 涉及对象。
|
|
51
|
-
:type involved_object: str
|
|
52
|
-
:param message: 组件事件信息。
|
|
53
|
-
:type message: str
|
|
54
|
-
:param created_at: 创建时间。
|
|
55
|
-
:type created_at: str
|
|
56
|
-
:param updated_at: 更新时间。
|
|
57
|
-
:type updated_at: str
|
|
58
|
-
:param status: 组件事件状态。
|
|
59
|
-
:type status: str
|
|
60
|
-
:param count: 事件发生次数。
|
|
61
|
-
:type count: int
|
|
62
|
-
"""
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
self._name = None
|
|
67
|
-
self._involved_object_kind = None
|
|
68
|
-
self._involved_object = None
|
|
69
|
-
self._message = None
|
|
70
|
-
self._created_at = None
|
|
71
|
-
self._updated_at = None
|
|
72
|
-
self._status = None
|
|
73
|
-
self._count = None
|
|
74
|
-
self.discriminator = None
|
|
75
|
-
|
|
76
|
-
if name is not None:
|
|
77
|
-
self.name = name
|
|
78
|
-
if involved_object_kind is not None:
|
|
79
|
-
self.involved_object_kind = involved_object_kind
|
|
80
|
-
if involved_object is not None:
|
|
81
|
-
self.involved_object = involved_object
|
|
82
|
-
if message is not None:
|
|
83
|
-
self.message = message
|
|
84
|
-
if created_at is not None:
|
|
85
|
-
self.created_at = created_at
|
|
86
|
-
if updated_at is not None:
|
|
87
|
-
self.updated_at = updated_at
|
|
88
|
-
if status is not None:
|
|
89
|
-
self.status = status
|
|
90
|
-
if count is not None:
|
|
91
|
-
self.count = count
|
|
92
|
-
|
|
93
|
-
@property
|
|
94
|
-
def name(self):
|
|
95
|
-
"""Gets the name of this EventItem.
|
|
96
|
-
|
|
97
|
-
事件名称。
|
|
98
|
-
|
|
99
|
-
:return: The name of this EventItem.
|
|
100
|
-
:rtype: str
|
|
101
|
-
"""
|
|
102
|
-
return self._name
|
|
103
|
-
|
|
104
|
-
@name.setter
|
|
105
|
-
def name(self, name):
|
|
106
|
-
"""Sets the name of this EventItem.
|
|
107
|
-
|
|
108
|
-
事件名称。
|
|
109
|
-
|
|
110
|
-
:param name: The name of this EventItem.
|
|
111
|
-
:type name: str
|
|
112
|
-
"""
|
|
113
|
-
self._name = name
|
|
114
|
-
|
|
115
|
-
@property
|
|
116
|
-
def involved_object_kind(self):
|
|
117
|
-
"""Gets the involved_object_kind of this EventItem.
|
|
118
|
-
|
|
119
|
-
涉及对象类型。
|
|
120
|
-
|
|
121
|
-
:return: The involved_object_kind of this EventItem.
|
|
122
|
-
:rtype: str
|
|
123
|
-
"""
|
|
124
|
-
return self._involved_object_kind
|
|
125
|
-
|
|
126
|
-
@involved_object_kind.setter
|
|
127
|
-
def involved_object_kind(self, involved_object_kind):
|
|
128
|
-
"""Sets the involved_object_kind of this EventItem.
|
|
129
|
-
|
|
130
|
-
涉及对象类型。
|
|
131
|
-
|
|
132
|
-
:param involved_object_kind: The involved_object_kind of this EventItem.
|
|
133
|
-
:type involved_object_kind: str
|
|
134
|
-
"""
|
|
135
|
-
self._involved_object_kind = involved_object_kind
|
|
136
|
-
|
|
137
|
-
@property
|
|
138
|
-
def involved_object(self):
|
|
139
|
-
"""Gets the involved_object of this EventItem.
|
|
140
|
-
|
|
141
|
-
涉及对象。
|
|
142
|
-
|
|
143
|
-
:return: The involved_object of this EventItem.
|
|
144
|
-
:rtype: str
|
|
145
|
-
"""
|
|
146
|
-
return self._involved_object
|
|
147
|
-
|
|
148
|
-
@involved_object.setter
|
|
149
|
-
def involved_object(self, involved_object):
|
|
150
|
-
"""Sets the involved_object of this EventItem.
|
|
151
|
-
|
|
152
|
-
涉及对象。
|
|
153
|
-
|
|
154
|
-
:param involved_object: The involved_object of this EventItem.
|
|
155
|
-
:type involved_object: str
|
|
156
|
-
"""
|
|
157
|
-
self._involved_object = involved_object
|
|
158
|
-
|
|
159
|
-
@property
|
|
160
|
-
def message(self):
|
|
161
|
-
"""Gets the message of this EventItem.
|
|
162
|
-
|
|
163
|
-
组件事件信息。
|
|
164
|
-
|
|
165
|
-
:return: The message of this EventItem.
|
|
166
|
-
:rtype: str
|
|
167
|
-
"""
|
|
168
|
-
return self._message
|
|
169
|
-
|
|
170
|
-
@message.setter
|
|
171
|
-
def message(self, message):
|
|
172
|
-
"""Sets the message of this EventItem.
|
|
173
|
-
|
|
174
|
-
组件事件信息。
|
|
175
|
-
|
|
176
|
-
:param message: The message of this EventItem.
|
|
177
|
-
:type message: str
|
|
178
|
-
"""
|
|
179
|
-
self._message = message
|
|
180
|
-
|
|
181
|
-
@property
|
|
182
|
-
def created_at(self):
|
|
183
|
-
"""Gets the created_at of this EventItem.
|
|
184
|
-
|
|
185
|
-
创建时间。
|
|
186
|
-
|
|
187
|
-
:return: The created_at of this EventItem.
|
|
188
|
-
:rtype: str
|
|
189
|
-
"""
|
|
190
|
-
return self._created_at
|
|
191
|
-
|
|
192
|
-
@created_at.setter
|
|
193
|
-
def created_at(self, created_at):
|
|
194
|
-
"""Sets the created_at of this EventItem.
|
|
195
|
-
|
|
196
|
-
创建时间。
|
|
197
|
-
|
|
198
|
-
:param created_at: The created_at of this EventItem.
|
|
199
|
-
:type created_at: str
|
|
200
|
-
"""
|
|
201
|
-
self._created_at = created_at
|
|
202
|
-
|
|
203
|
-
@property
|
|
204
|
-
def updated_at(self):
|
|
205
|
-
"""Gets the updated_at of this EventItem.
|
|
206
|
-
|
|
207
|
-
更新时间。
|
|
208
|
-
|
|
209
|
-
:return: The updated_at of this EventItem.
|
|
210
|
-
:rtype: str
|
|
211
|
-
"""
|
|
212
|
-
return self._updated_at
|
|
213
|
-
|
|
214
|
-
@updated_at.setter
|
|
215
|
-
def updated_at(self, updated_at):
|
|
216
|
-
"""Sets the updated_at of this EventItem.
|
|
217
|
-
|
|
218
|
-
更新时间。
|
|
219
|
-
|
|
220
|
-
:param updated_at: The updated_at of this EventItem.
|
|
221
|
-
:type updated_at: str
|
|
222
|
-
"""
|
|
223
|
-
self._updated_at = updated_at
|
|
224
|
-
|
|
225
|
-
@property
|
|
226
|
-
def status(self):
|
|
227
|
-
"""Gets the status of this EventItem.
|
|
228
|
-
|
|
229
|
-
组件事件状态。
|
|
230
|
-
|
|
231
|
-
:return: The status of this EventItem.
|
|
232
|
-
:rtype: str
|
|
233
|
-
"""
|
|
234
|
-
return self._status
|
|
235
|
-
|
|
236
|
-
@status.setter
|
|
237
|
-
def status(self, status):
|
|
238
|
-
"""Sets the status of this EventItem.
|
|
239
|
-
|
|
240
|
-
组件事件状态。
|
|
241
|
-
|
|
242
|
-
:param status: The status of this EventItem.
|
|
243
|
-
:type status: str
|
|
244
|
-
"""
|
|
245
|
-
self._status = status
|
|
246
|
-
|
|
247
|
-
@property
|
|
248
|
-
def count(self):
|
|
249
|
-
"""Gets the count of this EventItem.
|
|
250
|
-
|
|
251
|
-
事件发生次数。
|
|
252
|
-
|
|
253
|
-
:return: The count of this EventItem.
|
|
254
|
-
:rtype: int
|
|
255
|
-
"""
|
|
256
|
-
return self._count
|
|
257
|
-
|
|
258
|
-
@count.setter
|
|
259
|
-
def count(self, count):
|
|
260
|
-
"""Sets the count of this EventItem.
|
|
261
|
-
|
|
262
|
-
事件发生次数。
|
|
263
|
-
|
|
264
|
-
:param count: The count of this EventItem.
|
|
265
|
-
:type count: int
|
|
266
|
-
"""
|
|
267
|
-
self._count = count
|
|
268
|
-
|
|
269
|
-
def to_dict(self):
|
|
270
|
-
"""Returns the model properties as a dict"""
|
|
271
|
-
result = {}
|
|
272
|
-
|
|
273
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
274
|
-
value = getattr(self, attr)
|
|
275
|
-
if isinstance(value, list):
|
|
276
|
-
result[attr] = list(map(
|
|
277
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
278
|
-
value
|
|
279
|
-
))
|
|
280
|
-
elif hasattr(value, "to_dict"):
|
|
281
|
-
result[attr] = value.to_dict()
|
|
282
|
-
elif isinstance(value, dict):
|
|
283
|
-
result[attr] = dict(map(
|
|
284
|
-
lambda item: (item[0], item[1].to_dict())
|
|
285
|
-
if hasattr(item[1], "to_dict") else item,
|
|
286
|
-
value.items()
|
|
287
|
-
))
|
|
288
|
-
else:
|
|
289
|
-
if attr in self.sensitive_list:
|
|
290
|
-
result[attr] = "****"
|
|
291
|
-
else:
|
|
292
|
-
result[attr] = value
|
|
293
|
-
|
|
294
|
-
return result
|
|
295
|
-
|
|
296
|
-
def to_str(self):
|
|
297
|
-
"""Returns the string representation of the model"""
|
|
298
|
-
import simplejson as json
|
|
299
|
-
if six.PY2:
|
|
300
|
-
import sys
|
|
301
|
-
reload(sys)
|
|
302
|
-
sys.setdefaultencoding("utf-8")
|
|
303
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
304
|
-
|
|
305
|
-
def __repr__(self):
|
|
306
|
-
"""For `print`"""
|
|
307
|
-
return self.to_str()
|
|
308
|
-
|
|
309
|
-
def __eq__(self, other):
|
|
310
|
-
"""Returns true if both objects are equal"""
|
|
311
|
-
if not isinstance(other, EventItem):
|
|
312
|
-
return False
|
|
313
|
-
|
|
314
|
-
return self.__dict__ == other.__dict__
|
|
315
|
-
|
|
316
|
-
def __ne__(self, other):
|
|
317
|
-
"""Returns true if both objects are not equal"""
|
|
318
|
-
return not self == other
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
import six
|
|
4
|
-
|
|
5
|
-
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class ListComponentEventsRequest:
|
|
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
|
-
'application_id': 'str',
|
|
21
|
-
'component_id': 'str',
|
|
22
|
-
'x_enterprise_project_id': 'str',
|
|
23
|
-
'x_environment_id': 'str'
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
attribute_map = {
|
|
27
|
-
'application_id': 'application_id',
|
|
28
|
-
'component_id': 'component_id',
|
|
29
|
-
'x_enterprise_project_id': 'X-Enterprise-Project-ID',
|
|
30
|
-
'x_environment_id': 'X-Environment-ID'
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
def __init__(self, application_id=None, component_id=None, x_enterprise_project_id=None, x_environment_id=None):
|
|
34
|
-
"""ListComponentEventsRequest
|
|
35
|
-
|
|
36
|
-
The model defined in huaweicloud sdk
|
|
37
|
-
|
|
38
|
-
:param application_id: 应用ID。
|
|
39
|
-
:type application_id: str
|
|
40
|
-
:param component_id: 组件ID。
|
|
41
|
-
:type component_id: str
|
|
42
|
-
:param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
43
|
-
:type x_enterprise_project_id: str
|
|
44
|
-
:param x_environment_id: 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
45
|
-
:type x_environment_id: str
|
|
46
|
-
"""
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
self._application_id = None
|
|
51
|
-
self._component_id = None
|
|
52
|
-
self._x_enterprise_project_id = None
|
|
53
|
-
self._x_environment_id = None
|
|
54
|
-
self.discriminator = None
|
|
55
|
-
|
|
56
|
-
self.application_id = application_id
|
|
57
|
-
self.component_id = component_id
|
|
58
|
-
if x_enterprise_project_id is not None:
|
|
59
|
-
self.x_enterprise_project_id = x_enterprise_project_id
|
|
60
|
-
self.x_environment_id = x_environment_id
|
|
61
|
-
|
|
62
|
-
@property
|
|
63
|
-
def application_id(self):
|
|
64
|
-
"""Gets the application_id of this ListComponentEventsRequest.
|
|
65
|
-
|
|
66
|
-
应用ID。
|
|
67
|
-
|
|
68
|
-
:return: The application_id of this ListComponentEventsRequest.
|
|
69
|
-
:rtype: str
|
|
70
|
-
"""
|
|
71
|
-
return self._application_id
|
|
72
|
-
|
|
73
|
-
@application_id.setter
|
|
74
|
-
def application_id(self, application_id):
|
|
75
|
-
"""Sets the application_id of this ListComponentEventsRequest.
|
|
76
|
-
|
|
77
|
-
应用ID。
|
|
78
|
-
|
|
79
|
-
:param application_id: The application_id of this ListComponentEventsRequest.
|
|
80
|
-
:type application_id: str
|
|
81
|
-
"""
|
|
82
|
-
self._application_id = application_id
|
|
83
|
-
|
|
84
|
-
@property
|
|
85
|
-
def component_id(self):
|
|
86
|
-
"""Gets the component_id of this ListComponentEventsRequest.
|
|
87
|
-
|
|
88
|
-
组件ID。
|
|
89
|
-
|
|
90
|
-
:return: The component_id of this ListComponentEventsRequest.
|
|
91
|
-
:rtype: str
|
|
92
|
-
"""
|
|
93
|
-
return self._component_id
|
|
94
|
-
|
|
95
|
-
@component_id.setter
|
|
96
|
-
def component_id(self, component_id):
|
|
97
|
-
"""Sets the component_id of this ListComponentEventsRequest.
|
|
98
|
-
|
|
99
|
-
组件ID。
|
|
100
|
-
|
|
101
|
-
:param component_id: The component_id of this ListComponentEventsRequest.
|
|
102
|
-
:type component_id: str
|
|
103
|
-
"""
|
|
104
|
-
self._component_id = component_id
|
|
105
|
-
|
|
106
|
-
@property
|
|
107
|
-
def x_enterprise_project_id(self):
|
|
108
|
-
"""Gets the x_enterprise_project_id of this ListComponentEventsRequest.
|
|
109
|
-
|
|
110
|
-
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
111
|
-
|
|
112
|
-
:return: The x_enterprise_project_id of this ListComponentEventsRequest.
|
|
113
|
-
:rtype: str
|
|
114
|
-
"""
|
|
115
|
-
return self._x_enterprise_project_id
|
|
116
|
-
|
|
117
|
-
@x_enterprise_project_id.setter
|
|
118
|
-
def x_enterprise_project_id(self, x_enterprise_project_id):
|
|
119
|
-
"""Sets the x_enterprise_project_id of this ListComponentEventsRequest.
|
|
120
|
-
|
|
121
|
-
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
122
|
-
|
|
123
|
-
:param x_enterprise_project_id: The x_enterprise_project_id of this ListComponentEventsRequest.
|
|
124
|
-
:type x_enterprise_project_id: str
|
|
125
|
-
"""
|
|
126
|
-
self._x_enterprise_project_id = x_enterprise_project_id
|
|
127
|
-
|
|
128
|
-
@property
|
|
129
|
-
def x_environment_id(self):
|
|
130
|
-
"""Gets the x_environment_id of this ListComponentEventsRequest.
|
|
131
|
-
|
|
132
|
-
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
133
|
-
|
|
134
|
-
:return: The x_environment_id of this ListComponentEventsRequest.
|
|
135
|
-
:rtype: str
|
|
136
|
-
"""
|
|
137
|
-
return self._x_environment_id
|
|
138
|
-
|
|
139
|
-
@x_environment_id.setter
|
|
140
|
-
def x_environment_id(self, x_environment_id):
|
|
141
|
-
"""Sets the x_environment_id of this ListComponentEventsRequest.
|
|
142
|
-
|
|
143
|
-
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
144
|
-
|
|
145
|
-
:param x_environment_id: The x_environment_id of this ListComponentEventsRequest.
|
|
146
|
-
:type x_environment_id: str
|
|
147
|
-
"""
|
|
148
|
-
self._x_environment_id = x_environment_id
|
|
149
|
-
|
|
150
|
-
def to_dict(self):
|
|
151
|
-
"""Returns the model properties as a dict"""
|
|
152
|
-
result = {}
|
|
153
|
-
|
|
154
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
155
|
-
value = getattr(self, attr)
|
|
156
|
-
if isinstance(value, list):
|
|
157
|
-
result[attr] = list(map(
|
|
158
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
159
|
-
value
|
|
160
|
-
))
|
|
161
|
-
elif hasattr(value, "to_dict"):
|
|
162
|
-
result[attr] = value.to_dict()
|
|
163
|
-
elif isinstance(value, dict):
|
|
164
|
-
result[attr] = dict(map(
|
|
165
|
-
lambda item: (item[0], item[1].to_dict())
|
|
166
|
-
if hasattr(item[1], "to_dict") else item,
|
|
167
|
-
value.items()
|
|
168
|
-
))
|
|
169
|
-
else:
|
|
170
|
-
if attr in self.sensitive_list:
|
|
171
|
-
result[attr] = "****"
|
|
172
|
-
else:
|
|
173
|
-
result[attr] = value
|
|
174
|
-
|
|
175
|
-
return result
|
|
176
|
-
|
|
177
|
-
def to_str(self):
|
|
178
|
-
"""Returns the string representation of the model"""
|
|
179
|
-
import simplejson as json
|
|
180
|
-
if six.PY2:
|
|
181
|
-
import sys
|
|
182
|
-
reload(sys)
|
|
183
|
-
sys.setdefaultencoding("utf-8")
|
|
184
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
185
|
-
|
|
186
|
-
def __repr__(self):
|
|
187
|
-
"""For `print`"""
|
|
188
|
-
return self.to_str()
|
|
189
|
-
|
|
190
|
-
def __eq__(self, other):
|
|
191
|
-
"""Returns true if both objects are equal"""
|
|
192
|
-
if not isinstance(other, ListComponentEventsRequest):
|
|
193
|
-
return False
|
|
194
|
-
|
|
195
|
-
return self.__dict__ == other.__dict__
|
|
196
|
-
|
|
197
|
-
def __ne__(self, other):
|
|
198
|
-
"""Returns true if both objects are not equal"""
|
|
199
|
-
return not self == other
|
|
@@ -1,166 +0,0 @@
|
|
|
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 ListComponentEventsResponse(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': 'ApiVersionObj',
|
|
22
|
-
'kind': 'ComponentEventKindObj',
|
|
23
|
-
'items': 'list[EventItem]'
|
|
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
|
-
"""ListComponentEventsResponse
|
|
34
|
-
|
|
35
|
-
The model defined in huaweicloud sdk
|
|
36
|
-
|
|
37
|
-
:param api_version:
|
|
38
|
-
:type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
|
|
39
|
-
:param kind:
|
|
40
|
-
:type kind: :class:`huaweicloudsdkcae.v1.ComponentEventKindObj`
|
|
41
|
-
:param items: 事件项。
|
|
42
|
-
:type items: list[:class:`huaweicloudsdkcae.v1.EventItem`]
|
|
43
|
-
"""
|
|
44
|
-
|
|
45
|
-
super(ListComponentEventsResponse, 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 ListComponentEventsResponse.
|
|
62
|
-
|
|
63
|
-
:return: The api_version of this ListComponentEventsResponse.
|
|
64
|
-
:rtype: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
|
|
65
|
-
"""
|
|
66
|
-
return self._api_version
|
|
67
|
-
|
|
68
|
-
@api_version.setter
|
|
69
|
-
def api_version(self, api_version):
|
|
70
|
-
"""Sets the api_version of this ListComponentEventsResponse.
|
|
71
|
-
|
|
72
|
-
:param api_version: The api_version of this ListComponentEventsResponse.
|
|
73
|
-
:type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
|
|
74
|
-
"""
|
|
75
|
-
self._api_version = api_version
|
|
76
|
-
|
|
77
|
-
@property
|
|
78
|
-
def kind(self):
|
|
79
|
-
"""Gets the kind of this ListComponentEventsResponse.
|
|
80
|
-
|
|
81
|
-
:return: The kind of this ListComponentEventsResponse.
|
|
82
|
-
:rtype: :class:`huaweicloudsdkcae.v1.ComponentEventKindObj`
|
|
83
|
-
"""
|
|
84
|
-
return self._kind
|
|
85
|
-
|
|
86
|
-
@kind.setter
|
|
87
|
-
def kind(self, kind):
|
|
88
|
-
"""Sets the kind of this ListComponentEventsResponse.
|
|
89
|
-
|
|
90
|
-
:param kind: The kind of this ListComponentEventsResponse.
|
|
91
|
-
:type kind: :class:`huaweicloudsdkcae.v1.ComponentEventKindObj`
|
|
92
|
-
"""
|
|
93
|
-
self._kind = kind
|
|
94
|
-
|
|
95
|
-
@property
|
|
96
|
-
def items(self):
|
|
97
|
-
"""Gets the items of this ListComponentEventsResponse.
|
|
98
|
-
|
|
99
|
-
事件项。
|
|
100
|
-
|
|
101
|
-
:return: The items of this ListComponentEventsResponse.
|
|
102
|
-
:rtype: list[:class:`huaweicloudsdkcae.v1.EventItem`]
|
|
103
|
-
"""
|
|
104
|
-
return self._items
|
|
105
|
-
|
|
106
|
-
@items.setter
|
|
107
|
-
def items(self, items):
|
|
108
|
-
"""Sets the items of this ListComponentEventsResponse.
|
|
109
|
-
|
|
110
|
-
事件项。
|
|
111
|
-
|
|
112
|
-
:param items: The items of this ListComponentEventsResponse.
|
|
113
|
-
:type items: list[:class:`huaweicloudsdkcae.v1.EventItem`]
|
|
114
|
-
"""
|
|
115
|
-
self._items = items
|
|
116
|
-
|
|
117
|
-
def to_dict(self):
|
|
118
|
-
"""Returns the model properties as a dict"""
|
|
119
|
-
result = {}
|
|
120
|
-
|
|
121
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
122
|
-
value = getattr(self, attr)
|
|
123
|
-
if isinstance(value, list):
|
|
124
|
-
result[attr] = list(map(
|
|
125
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
126
|
-
value
|
|
127
|
-
))
|
|
128
|
-
elif hasattr(value, "to_dict"):
|
|
129
|
-
result[attr] = value.to_dict()
|
|
130
|
-
elif isinstance(value, dict):
|
|
131
|
-
result[attr] = dict(map(
|
|
132
|
-
lambda item: (item[0], item[1].to_dict())
|
|
133
|
-
if hasattr(item[1], "to_dict") else item,
|
|
134
|
-
value.items()
|
|
135
|
-
))
|
|
136
|
-
else:
|
|
137
|
-
if attr in self.sensitive_list:
|
|
138
|
-
result[attr] = "****"
|
|
139
|
-
else:
|
|
140
|
-
result[attr] = value
|
|
141
|
-
|
|
142
|
-
return result
|
|
143
|
-
|
|
144
|
-
def to_str(self):
|
|
145
|
-
"""Returns the string representation of the model"""
|
|
146
|
-
import simplejson as json
|
|
147
|
-
if six.PY2:
|
|
148
|
-
import sys
|
|
149
|
-
reload(sys)
|
|
150
|
-
sys.setdefaultencoding("utf-8")
|
|
151
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
152
|
-
|
|
153
|
-
def __repr__(self):
|
|
154
|
-
"""For `print`"""
|
|
155
|
-
return self.to_str()
|
|
156
|
-
|
|
157
|
-
def __eq__(self, other):
|
|
158
|
-
"""Returns true if both objects are equal"""
|
|
159
|
-
if not isinstance(other, ListComponentEventsResponse):
|
|
160
|
-
return False
|
|
161
|
-
|
|
162
|
-
return self.__dict__ == other.__dict__
|
|
163
|
-
|
|
164
|
-
def __ne__(self, other):
|
|
165
|
-
"""Returns true if both objects are not equal"""
|
|
166
|
-
return not self == other
|
|
File without changes
|
|
File without changes
|
|
File without changes
|