huaweicloudsdkcae 3.1.71__py2.py3-none-any.whl → 3.1.73__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.

@@ -0,0 +1,87 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class MonitorSystemKindObj:
9
+ """
10
+ allowed enum values
11
+ """
12
+ MONITORSYSTEM = "MonitorSystem"
13
+ """
14
+ Attributes:
15
+ openapi_types (dict): The key is attribute name
16
+ and the value is attribute type.
17
+ attribute_map (dict): The key is attribute name
18
+ and the value is json key in definition.
19
+ """
20
+ sensitive_list = []
21
+
22
+ openapi_types = {
23
+ }
24
+
25
+ attribute_map = {
26
+ }
27
+
28
+ def __init__(self):
29
+ """MonitorSystemKindObj
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ """
34
+
35
+
36
+ self.discriminator = None
37
+
38
+ def to_dict(self):
39
+ """Returns the model properties as a dict"""
40
+ result = {}
41
+
42
+ for attr, _ in six.iteritems(self.openapi_types):
43
+ value = getattr(self, attr)
44
+ if isinstance(value, list):
45
+ result[attr] = list(map(
46
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
47
+ value
48
+ ))
49
+ elif hasattr(value, "to_dict"):
50
+ result[attr] = value.to_dict()
51
+ elif isinstance(value, dict):
52
+ result[attr] = dict(map(
53
+ lambda item: (item[0], item[1].to_dict())
54
+ if hasattr(item[1], "to_dict") else item,
55
+ value.items()
56
+ ))
57
+ else:
58
+ if attr in self.sensitive_list:
59
+ result[attr] = "****"
60
+ else:
61
+ result[attr] = value
62
+
63
+ return result
64
+
65
+ def to_str(self):
66
+ """Returns the string representation of the model"""
67
+ import simplejson as json
68
+ if six.PY2:
69
+ import sys
70
+ reload(sys)
71
+ sys.setdefaultencoding("utf-8")
72
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
73
+
74
+ def __repr__(self):
75
+ """For `print`"""
76
+ return self.to_str()
77
+
78
+ def __eq__(self, other):
79
+ """Returns true if both objects are equal"""
80
+ if not isinstance(other, MonitorSystemKindObj):
81
+ return False
82
+
83
+ return self.__dict__ == other.__dict__
84
+
85
+ def __ne__(self, other):
86
+ """Returns true if both objects are not equal"""
87
+ return not self == other
@@ -0,0 +1,161 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class MonitorSystemRequestBody:
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
+ 'api_version': 'ApiVersionObj',
21
+ 'kind': 'MonitorSystemKindObj',
22
+ 'spec': 'MonitorSystemRequestBodySpec'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'api_version': 'api_version',
27
+ 'kind': 'kind',
28
+ 'spec': 'spec'
29
+ }
30
+
31
+ def __init__(self, api_version=None, kind=None, spec=None):
32
+ """MonitorSystemRequestBody
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param api_version:
37
+ :type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
38
+ :param kind:
39
+ :type kind: :class:`huaweicloudsdkcae.v1.MonitorSystemKindObj`
40
+ :param spec:
41
+ :type spec: :class:`huaweicloudsdkcae.v1.MonitorSystemRequestBodySpec`
42
+ """
43
+
44
+
45
+
46
+ self._api_version = None
47
+ self._kind = None
48
+ self._spec = None
49
+ self.discriminator = None
50
+
51
+ if api_version is not None:
52
+ self.api_version = api_version
53
+ if kind is not None:
54
+ self.kind = kind
55
+ if spec is not None:
56
+ self.spec = spec
57
+
58
+ @property
59
+ def api_version(self):
60
+ """Gets the api_version of this MonitorSystemRequestBody.
61
+
62
+ :return: The api_version of this MonitorSystemRequestBody.
63
+ :rtype: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
64
+ """
65
+ return self._api_version
66
+
67
+ @api_version.setter
68
+ def api_version(self, api_version):
69
+ """Sets the api_version of this MonitorSystemRequestBody.
70
+
71
+ :param api_version: The api_version of this MonitorSystemRequestBody.
72
+ :type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
73
+ """
74
+ self._api_version = api_version
75
+
76
+ @property
77
+ def kind(self):
78
+ """Gets the kind of this MonitorSystemRequestBody.
79
+
80
+ :return: The kind of this MonitorSystemRequestBody.
81
+ :rtype: :class:`huaweicloudsdkcae.v1.MonitorSystemKindObj`
82
+ """
83
+ return self._kind
84
+
85
+ @kind.setter
86
+ def kind(self, kind):
87
+ """Sets the kind of this MonitorSystemRequestBody.
88
+
89
+ :param kind: The kind of this MonitorSystemRequestBody.
90
+ :type kind: :class:`huaweicloudsdkcae.v1.MonitorSystemKindObj`
91
+ """
92
+ self._kind = kind
93
+
94
+ @property
95
+ def spec(self):
96
+ """Gets the spec of this MonitorSystemRequestBody.
97
+
98
+ :return: The spec of this MonitorSystemRequestBody.
99
+ :rtype: :class:`huaweicloudsdkcae.v1.MonitorSystemRequestBodySpec`
100
+ """
101
+ return self._spec
102
+
103
+ @spec.setter
104
+ def spec(self, spec):
105
+ """Sets the spec of this MonitorSystemRequestBody.
106
+
107
+ :param spec: The spec of this MonitorSystemRequestBody.
108
+ :type spec: :class:`huaweicloudsdkcae.v1.MonitorSystemRequestBodySpec`
109
+ """
110
+ self._spec = spec
111
+
112
+ def to_dict(self):
113
+ """Returns the model properties as a dict"""
114
+ result = {}
115
+
116
+ for attr, _ in six.iteritems(self.openapi_types):
117
+ value = getattr(self, attr)
118
+ if isinstance(value, list):
119
+ result[attr] = list(map(
120
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
121
+ value
122
+ ))
123
+ elif hasattr(value, "to_dict"):
124
+ result[attr] = value.to_dict()
125
+ elif isinstance(value, dict):
126
+ result[attr] = dict(map(
127
+ lambda item: (item[0], item[1].to_dict())
128
+ if hasattr(item[1], "to_dict") else item,
129
+ value.items()
130
+ ))
131
+ else:
132
+ if attr in self.sensitive_list:
133
+ result[attr] = "****"
134
+ else:
135
+ result[attr] = value
136
+
137
+ return result
138
+
139
+ def to_str(self):
140
+ """Returns the string representation of the model"""
141
+ import simplejson as json
142
+ if six.PY2:
143
+ import sys
144
+ reload(sys)
145
+ sys.setdefaultencoding("utf-8")
146
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
147
+
148
+ def __repr__(self):
149
+ """For `print`"""
150
+ return self.to_str()
151
+
152
+ def __eq__(self, other):
153
+ """Returns true if both objects are equal"""
154
+ if not isinstance(other, MonitorSystemRequestBody):
155
+ return False
156
+
157
+ return self.__dict__ == other.__dict__
158
+
159
+ def __ne__(self, other):
160
+ """Returns true if both objects are not equal"""
161
+ return not self == other
@@ -0,0 +1,313 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class MonitorSystemRequestBodySpec:
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
+ 'type': 'str',
21
+ 'instrumentation': 'str',
22
+ 'access_key': 'str',
23
+ 'access_value': 'str',
24
+ 'access_token': 'str',
25
+ 'apm_application': 'str',
26
+ 'version': 'str',
27
+ 'image_pull_policy': 'str'
28
+ }
29
+
30
+ attribute_map = {
31
+ 'type': 'type',
32
+ 'instrumentation': 'instrumentation',
33
+ 'access_key': 'access_key',
34
+ 'access_value': 'access_value',
35
+ 'access_token': 'access_token',
36
+ 'apm_application': 'apm_application',
37
+ 'version': 'version',
38
+ 'image_pull_policy': 'image_pull_policy'
39
+ }
40
+
41
+ def __init__(self, type=None, instrumentation=None, access_key=None, access_value=None, access_token=None, apm_application=None, version=None, image_pull_policy=None):
42
+ """MonitorSystemRequestBodySpec
43
+
44
+ The model defined in huaweicloud sdk
45
+
46
+ :param type: 采集方式,包括apm2和opentelemetry。
47
+ :type type: str
48
+ :param instrumentation: 探针注入方式,包括automatic和manual。
49
+ :type instrumentation: str
50
+ :param access_key: apm2 access_key。
51
+ :type access_key: str
52
+ :param access_value: apm2 access_value。
53
+ :type access_value: str
54
+ :param access_token: apm opentelemetry接入token。
55
+ :type access_token: str
56
+ :param apm_application: apm应用名。
57
+ :type apm_application: str
58
+ :param version: apm-agent/opentelemetry-agent探针版本。
59
+ :type version: str
60
+ :param image_pull_policy: 探针镜像更新策略。
61
+ :type image_pull_policy: str
62
+ """
63
+
64
+
65
+
66
+ self._type = None
67
+ self._instrumentation = None
68
+ self._access_key = None
69
+ self._access_value = None
70
+ self._access_token = None
71
+ self._apm_application = None
72
+ self._version = None
73
+ self._image_pull_policy = None
74
+ self.discriminator = None
75
+
76
+ self.type = type
77
+ self.instrumentation = instrumentation
78
+ if access_key is not None:
79
+ self.access_key = access_key
80
+ if access_value is not None:
81
+ self.access_value = access_value
82
+ if access_token is not None:
83
+ self.access_token = access_token
84
+ self.apm_application = apm_application
85
+ self.version = version
86
+ self.image_pull_policy = image_pull_policy
87
+
88
+ @property
89
+ def type(self):
90
+ """Gets the type of this MonitorSystemRequestBodySpec.
91
+
92
+ 采集方式,包括apm2和opentelemetry。
93
+
94
+ :return: The type of this MonitorSystemRequestBodySpec.
95
+ :rtype: str
96
+ """
97
+ return self._type
98
+
99
+ @type.setter
100
+ def type(self, type):
101
+ """Sets the type of this MonitorSystemRequestBodySpec.
102
+
103
+ 采集方式,包括apm2和opentelemetry。
104
+
105
+ :param type: The type of this MonitorSystemRequestBodySpec.
106
+ :type type: str
107
+ """
108
+ self._type = type
109
+
110
+ @property
111
+ def instrumentation(self):
112
+ """Gets the instrumentation of this MonitorSystemRequestBodySpec.
113
+
114
+ 探针注入方式,包括automatic和manual。
115
+
116
+ :return: The instrumentation of this MonitorSystemRequestBodySpec.
117
+ :rtype: str
118
+ """
119
+ return self._instrumentation
120
+
121
+ @instrumentation.setter
122
+ def instrumentation(self, instrumentation):
123
+ """Sets the instrumentation of this MonitorSystemRequestBodySpec.
124
+
125
+ 探针注入方式,包括automatic和manual。
126
+
127
+ :param instrumentation: The instrumentation of this MonitorSystemRequestBodySpec.
128
+ :type instrumentation: str
129
+ """
130
+ self._instrumentation = instrumentation
131
+
132
+ @property
133
+ def access_key(self):
134
+ """Gets the access_key of this MonitorSystemRequestBodySpec.
135
+
136
+ apm2 access_key。
137
+
138
+ :return: The access_key of this MonitorSystemRequestBodySpec.
139
+ :rtype: str
140
+ """
141
+ return self._access_key
142
+
143
+ @access_key.setter
144
+ def access_key(self, access_key):
145
+ """Sets the access_key of this MonitorSystemRequestBodySpec.
146
+
147
+ apm2 access_key。
148
+
149
+ :param access_key: The access_key of this MonitorSystemRequestBodySpec.
150
+ :type access_key: str
151
+ """
152
+ self._access_key = access_key
153
+
154
+ @property
155
+ def access_value(self):
156
+ """Gets the access_value of this MonitorSystemRequestBodySpec.
157
+
158
+ apm2 access_value。
159
+
160
+ :return: The access_value of this MonitorSystemRequestBodySpec.
161
+ :rtype: str
162
+ """
163
+ return self._access_value
164
+
165
+ @access_value.setter
166
+ def access_value(self, access_value):
167
+ """Sets the access_value of this MonitorSystemRequestBodySpec.
168
+
169
+ apm2 access_value。
170
+
171
+ :param access_value: The access_value of this MonitorSystemRequestBodySpec.
172
+ :type access_value: str
173
+ """
174
+ self._access_value = access_value
175
+
176
+ @property
177
+ def access_token(self):
178
+ """Gets the access_token of this MonitorSystemRequestBodySpec.
179
+
180
+ apm opentelemetry接入token。
181
+
182
+ :return: The access_token of this MonitorSystemRequestBodySpec.
183
+ :rtype: str
184
+ """
185
+ return self._access_token
186
+
187
+ @access_token.setter
188
+ def access_token(self, access_token):
189
+ """Sets the access_token of this MonitorSystemRequestBodySpec.
190
+
191
+ apm opentelemetry接入token。
192
+
193
+ :param access_token: The access_token of this MonitorSystemRequestBodySpec.
194
+ :type access_token: str
195
+ """
196
+ self._access_token = access_token
197
+
198
+ @property
199
+ def apm_application(self):
200
+ """Gets the apm_application of this MonitorSystemRequestBodySpec.
201
+
202
+ apm应用名。
203
+
204
+ :return: The apm_application of this MonitorSystemRequestBodySpec.
205
+ :rtype: str
206
+ """
207
+ return self._apm_application
208
+
209
+ @apm_application.setter
210
+ def apm_application(self, apm_application):
211
+ """Sets the apm_application of this MonitorSystemRequestBodySpec.
212
+
213
+ apm应用名。
214
+
215
+ :param apm_application: The apm_application of this MonitorSystemRequestBodySpec.
216
+ :type apm_application: str
217
+ """
218
+ self._apm_application = apm_application
219
+
220
+ @property
221
+ def version(self):
222
+ """Gets the version of this MonitorSystemRequestBodySpec.
223
+
224
+ apm-agent/opentelemetry-agent探针版本。
225
+
226
+ :return: The version of this MonitorSystemRequestBodySpec.
227
+ :rtype: str
228
+ """
229
+ return self._version
230
+
231
+ @version.setter
232
+ def version(self, version):
233
+ """Sets the version of this MonitorSystemRequestBodySpec.
234
+
235
+ apm-agent/opentelemetry-agent探针版本。
236
+
237
+ :param version: The version of this MonitorSystemRequestBodySpec.
238
+ :type version: str
239
+ """
240
+ self._version = version
241
+
242
+ @property
243
+ def image_pull_policy(self):
244
+ """Gets the image_pull_policy of this MonitorSystemRequestBodySpec.
245
+
246
+ 探针镜像更新策略。
247
+
248
+ :return: The image_pull_policy of this MonitorSystemRequestBodySpec.
249
+ :rtype: str
250
+ """
251
+ return self._image_pull_policy
252
+
253
+ @image_pull_policy.setter
254
+ def image_pull_policy(self, image_pull_policy):
255
+ """Sets the image_pull_policy of this MonitorSystemRequestBodySpec.
256
+
257
+ 探针镜像更新策略。
258
+
259
+ :param image_pull_policy: The image_pull_policy of this MonitorSystemRequestBodySpec.
260
+ :type image_pull_policy: str
261
+ """
262
+ self._image_pull_policy = image_pull_policy
263
+
264
+ def to_dict(self):
265
+ """Returns the model properties as a dict"""
266
+ result = {}
267
+
268
+ for attr, _ in six.iteritems(self.openapi_types):
269
+ value = getattr(self, attr)
270
+ if isinstance(value, list):
271
+ result[attr] = list(map(
272
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
273
+ value
274
+ ))
275
+ elif hasattr(value, "to_dict"):
276
+ result[attr] = value.to_dict()
277
+ elif isinstance(value, dict):
278
+ result[attr] = dict(map(
279
+ lambda item: (item[0], item[1].to_dict())
280
+ if hasattr(item[1], "to_dict") else item,
281
+ value.items()
282
+ ))
283
+ else:
284
+ if attr in self.sensitive_list:
285
+ result[attr] = "****"
286
+ else:
287
+ result[attr] = value
288
+
289
+ return result
290
+
291
+ def to_str(self):
292
+ """Returns the string representation of the model"""
293
+ import simplejson as json
294
+ if six.PY2:
295
+ import sys
296
+ reload(sys)
297
+ sys.setdefaultencoding("utf-8")
298
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
299
+
300
+ def __repr__(self):
301
+ """For `print`"""
302
+ return self.to_str()
303
+
304
+ def __eq__(self, other):
305
+ """Returns true if both objects are equal"""
306
+ if not isinstance(other, MonitorSystemRequestBodySpec):
307
+ return False
308
+
309
+ return self.__dict__ == other.__dict__
310
+
311
+ def __ne__(self, other):
312
+ """Returns true if both objects are not equal"""
313
+ return not self == other
@@ -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 ShowMonitorSystemRequest:
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
+ """ShowMonitorSystemRequest
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 ShowMonitorSystemRequest.
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 ShowMonitorSystemRequest.
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 ShowMonitorSystemRequest.
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 ShowMonitorSystemRequest.
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 ShowMonitorSystemRequest.
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 ShowMonitorSystemRequest.
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 ShowMonitorSystemRequest.
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 ShowMonitorSystemRequest.
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, ShowMonitorSystemRequest):
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