huaweicloudsdkgaussdb 3.1.95__py2.py3-none-any.whl → 3.1.96__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.
Files changed (78) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +69 -0
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1101 -66
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +1101 -66
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +69 -0
  5. huaweicloudsdkgaussdb/v3/model/check_star_rocks_resource_request.py +140 -0
  6. huaweicloudsdkgaussdb/v3/model/check_star_rocks_resource_response.py +116 -0
  7. huaweicloudsdkgaussdb/v3/model/create_star_rocks_database_user_request.py +168 -0
  8. huaweicloudsdkgaussdb/v3/model/create_star_rocks_database_user_response.py +116 -0
  9. huaweicloudsdkgaussdb/v3/model/create_starrocks_instance_request.py +168 -0
  10. huaweicloudsdkgaussdb/v3/model/create_starrocks_instance_response.py +141 -0
  11. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_database_user_request.py +171 -0
  12. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_database_user_response.py +116 -0
  13. huaweicloudsdkgaussdb/v3/model/delete_starrocks_instance_request.py +171 -0
  14. huaweicloudsdkgaussdb/v3/model/delete_starrocks_instance_response.py +116 -0
  15. huaweicloudsdkgaussdb/v3/model/htap_flavor_info_flavors.py +318 -0
  16. huaweicloudsdkgaussdb/v3/model/htap_instance_list_available_zones.py +173 -0
  17. huaweicloudsdkgaussdb/v3/model/htap_instance_list_instance_state.py +202 -0
  18. huaweicloudsdkgaussdb/v3/model/htap_instance_list_instances.py +832 -0
  19. huaweicloudsdkgaussdb/v3/model/htap_instance_list_network.py +173 -0
  20. huaweicloudsdkgaussdb/v3/model/htap_storage_type_storage_type.py +173 -0
  21. huaweicloudsdkgaussdb/v3/model/list_htap_data_store_request.py +143 -0
  22. huaweicloudsdkgaussdb/v3/model/list_htap_data_store_response.py +116 -0
  23. huaweicloudsdkgaussdb/v3/model/list_htap_flavor_request.py +230 -0
  24. huaweicloudsdkgaussdb/v3/model/list_htap_flavor_response.py +116 -0
  25. huaweicloudsdkgaussdb/v3/model/list_htap_instance_info_request.py +143 -0
  26. huaweicloudsdkgaussdb/v3/model/list_htap_instance_info_response.py +174 -0
  27. huaweicloudsdkgaussdb/v3/model/list_htap_storage_type_request.py +171 -0
  28. huaweicloudsdkgaussdb/v3/model/list_htap_storage_type_response.py +116 -0
  29. huaweicloudsdkgaussdb/v3/model/list_starrocks_instance_info_request.py +171 -0
  30. huaweicloudsdkgaussdb/v3/model/list_starrocks_instance_info_response.py +116 -0
  31. huaweicloudsdkgaussdb/v3/model/param_group.py +144 -0
  32. huaweicloudsdkgaussdb/v3/model/query_action.py +318 -0
  33. huaweicloudsdkgaussdb/v3/model/readable_node_infos.py +173 -0
  34. huaweicloudsdkgaussdb/v3/model/resource_check.py +138 -0
  35. huaweicloudsdkgaussdb/v3/model/resource_check_resource.py +367 -0
  36. huaweicloudsdkgaussdb/v3/model/restart_starrocks_instance_request.py +143 -0
  37. huaweicloudsdkgaussdb/v3/model/restart_starrocks_instance_response.py +116 -0
  38. huaweicloudsdkgaussdb/v3/model/restart_starrocks_node_request.py +171 -0
  39. huaweicloudsdkgaussdb/v3/model/restart_starrocks_node_response.py +116 -0
  40. huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_user_request.py +228 -0
  41. huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_user_response.py +145 -0
  42. huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_users_user_details.py +198 -0
  43. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance.py +538 -0
  44. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_engine.py +144 -0
  45. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_pay_info.py +231 -0
  46. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info.py +144 -0
  47. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info_sys_tags.py +144 -0
  48. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info_tags.py +144 -0
  49. huaweicloudsdkgaussdb/v3/model/sr_data_stores_datastores.py +173 -0
  50. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request.py +459 -0
  51. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_be_volume.py +142 -0
  52. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_engine.py +142 -0
  53. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_fe_volume.py +142 -0
  54. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_ha.py +114 -0
  55. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_tags_info.py +114 -0
  56. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_tags_info_sys_tags.py +142 -0
  57. huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_info.py +228 -0
  58. huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_p_sinfo.py +201 -0
  59. huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_p_winfo.py +142 -0
  60. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_datastore.py +173 -0
  61. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_groups.py +231 -0
  62. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_instances.py +1292 -0
  63. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_nodes.py +1006 -0
  64. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_ops_window.py +173 -0
  65. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_port_info.py +115 -0
  66. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info.py +144 -0
  67. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info_sys_tags.py +144 -0
  68. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info_tags.py +144 -0
  69. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_volume.py +144 -0
  70. huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_password_request.py +168 -0
  71. huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_password_response.py +116 -0
  72. huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_permission_request.py +168 -0
  73. huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_permission_response.py +116 -0
  74. {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/METADATA +2 -2
  75. {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/RECORD +78 -9
  76. {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/LICENSE +0 -0
  77. {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/WHEEL +0 -0
  78. {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/top_level.txt +0 -0
@@ -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 ParamGroup:
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
+ 'id': 'str',
21
+ 'name': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'id': 'id',
26
+ 'name': 'name'
27
+ }
28
+
29
+ def __init__(self, id=None, name=None):
30
+ """ParamGroup
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param id: 参数组ID。
35
+ :type id: str
36
+ :param name: 参数组名。
37
+ :type name: str
38
+ """
39
+
40
+
41
+
42
+ self._id = None
43
+ self._name = None
44
+ self.discriminator = None
45
+
46
+ if id is not None:
47
+ self.id = id
48
+ if name is not None:
49
+ self.name = name
50
+
51
+ @property
52
+ def id(self):
53
+ """Gets the id of this ParamGroup.
54
+
55
+ 参数组ID。
56
+
57
+ :return: The id of this ParamGroup.
58
+ :rtype: str
59
+ """
60
+ return self._id
61
+
62
+ @id.setter
63
+ def id(self, id):
64
+ """Sets the id of this ParamGroup.
65
+
66
+ 参数组ID。
67
+
68
+ :param id: The id of this ParamGroup.
69
+ :type id: str
70
+ """
71
+ self._id = id
72
+
73
+ @property
74
+ def name(self):
75
+ """Gets the name of this ParamGroup.
76
+
77
+ 参数组名。
78
+
79
+ :return: The name of this ParamGroup.
80
+ :rtype: str
81
+ """
82
+ return self._name
83
+
84
+ @name.setter
85
+ def name(self, name):
86
+ """Sets the name of this ParamGroup.
87
+
88
+ 参数组名。
89
+
90
+ :param name: The name of this ParamGroup.
91
+ :type name: str
92
+ """
93
+ self._name = name
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, ParamGroup):
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
@@ -0,0 +1,318 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class QueryAction:
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
+ 'id': 'str',
21
+ 'action': 'str',
22
+ 'object_id': 'str',
23
+ 'type': 'str',
24
+ 'job_id': 'str',
25
+ 'status': 'str',
26
+ 'created_at': 'int',
27
+ 'updated_at': 'int'
28
+ }
29
+
30
+ attribute_map = {
31
+ 'id': 'id',
32
+ 'action': 'action',
33
+ 'object_id': 'object_id',
34
+ 'type': 'type',
35
+ 'job_id': 'job_id',
36
+ 'status': 'status',
37
+ 'created_at': 'created_at',
38
+ 'updated_at': 'updated_at'
39
+ }
40
+
41
+ def __init__(self, id=None, action=None, object_id=None, type=None, job_id=None, status=None, created_at=None, updated_at=None):
42
+ """QueryAction
43
+
44
+ The model defined in huaweicloud sdk
45
+
46
+ :param id: 实例或节点动作ID。
47
+ :type id: str
48
+ :param action: 实例或节点动作名称。
49
+ :type action: str
50
+ :param object_id: 实例或节点动作对象ID。
51
+ :type object_id: str
52
+ :param type: 实例或节点动作类型。
53
+ :type type: str
54
+ :param job_id: 实例或节点动作任务ID。
55
+ :type job_id: str
56
+ :param status: 实例或节点动作状态。
57
+ :type status: str
58
+ :param created_at: 实例或节点动作创建时间。
59
+ :type created_at: int
60
+ :param updated_at: 实例或节点动作更新时间。
61
+ :type updated_at: int
62
+ """
63
+
64
+
65
+
66
+ self._id = None
67
+ self._action = None
68
+ self._object_id = None
69
+ self._type = None
70
+ self._job_id = None
71
+ self._status = None
72
+ self._created_at = None
73
+ self._updated_at = None
74
+ self.discriminator = None
75
+
76
+ if id is not None:
77
+ self.id = id
78
+ if action is not None:
79
+ self.action = action
80
+ if object_id is not None:
81
+ self.object_id = object_id
82
+ if type is not None:
83
+ self.type = type
84
+ if job_id is not None:
85
+ self.job_id = job_id
86
+ if status is not None:
87
+ self.status = status
88
+ if created_at is not None:
89
+ self.created_at = created_at
90
+ if updated_at is not None:
91
+ self.updated_at = updated_at
92
+
93
+ @property
94
+ def id(self):
95
+ """Gets the id of this QueryAction.
96
+
97
+ 实例或节点动作ID。
98
+
99
+ :return: The id of this QueryAction.
100
+ :rtype: str
101
+ """
102
+ return self._id
103
+
104
+ @id.setter
105
+ def id(self, id):
106
+ """Sets the id of this QueryAction.
107
+
108
+ 实例或节点动作ID。
109
+
110
+ :param id: The id of this QueryAction.
111
+ :type id: str
112
+ """
113
+ self._id = id
114
+
115
+ @property
116
+ def action(self):
117
+ """Gets the action of this QueryAction.
118
+
119
+ 实例或节点动作名称。
120
+
121
+ :return: The action of this QueryAction.
122
+ :rtype: str
123
+ """
124
+ return self._action
125
+
126
+ @action.setter
127
+ def action(self, action):
128
+ """Sets the action of this QueryAction.
129
+
130
+ 实例或节点动作名称。
131
+
132
+ :param action: The action of this QueryAction.
133
+ :type action: str
134
+ """
135
+ self._action = action
136
+
137
+ @property
138
+ def object_id(self):
139
+ """Gets the object_id of this QueryAction.
140
+
141
+ 实例或节点动作对象ID。
142
+
143
+ :return: The object_id of this QueryAction.
144
+ :rtype: str
145
+ """
146
+ return self._object_id
147
+
148
+ @object_id.setter
149
+ def object_id(self, object_id):
150
+ """Sets the object_id of this QueryAction.
151
+
152
+ 实例或节点动作对象ID。
153
+
154
+ :param object_id: The object_id of this QueryAction.
155
+ :type object_id: str
156
+ """
157
+ self._object_id = object_id
158
+
159
+ @property
160
+ def type(self):
161
+ """Gets the type of this QueryAction.
162
+
163
+ 实例或节点动作类型。
164
+
165
+ :return: The type of this QueryAction.
166
+ :rtype: str
167
+ """
168
+ return self._type
169
+
170
+ @type.setter
171
+ def type(self, type):
172
+ """Sets the type of this QueryAction.
173
+
174
+ 实例或节点动作类型。
175
+
176
+ :param type: The type of this QueryAction.
177
+ :type type: str
178
+ """
179
+ self._type = type
180
+
181
+ @property
182
+ def job_id(self):
183
+ """Gets the job_id of this QueryAction.
184
+
185
+ 实例或节点动作任务ID。
186
+
187
+ :return: The job_id of this QueryAction.
188
+ :rtype: str
189
+ """
190
+ return self._job_id
191
+
192
+ @job_id.setter
193
+ def job_id(self, job_id):
194
+ """Sets the job_id of this QueryAction.
195
+
196
+ 实例或节点动作任务ID。
197
+
198
+ :param job_id: The job_id of this QueryAction.
199
+ :type job_id: str
200
+ """
201
+ self._job_id = job_id
202
+
203
+ @property
204
+ def status(self):
205
+ """Gets the status of this QueryAction.
206
+
207
+ 实例或节点动作状态。
208
+
209
+ :return: The status of this QueryAction.
210
+ :rtype: str
211
+ """
212
+ return self._status
213
+
214
+ @status.setter
215
+ def status(self, status):
216
+ """Sets the status of this QueryAction.
217
+
218
+ 实例或节点动作状态。
219
+
220
+ :param status: The status of this QueryAction.
221
+ :type status: str
222
+ """
223
+ self._status = status
224
+
225
+ @property
226
+ def created_at(self):
227
+ """Gets the created_at of this QueryAction.
228
+
229
+ 实例或节点动作创建时间。
230
+
231
+ :return: The created_at of this QueryAction.
232
+ :rtype: int
233
+ """
234
+ return self._created_at
235
+
236
+ @created_at.setter
237
+ def created_at(self, created_at):
238
+ """Sets the created_at of this QueryAction.
239
+
240
+ 实例或节点动作创建时间。
241
+
242
+ :param created_at: The created_at of this QueryAction.
243
+ :type created_at: int
244
+ """
245
+ self._created_at = created_at
246
+
247
+ @property
248
+ def updated_at(self):
249
+ """Gets the updated_at of this QueryAction.
250
+
251
+ 实例或节点动作更新时间。
252
+
253
+ :return: The updated_at of this QueryAction.
254
+ :rtype: int
255
+ """
256
+ return self._updated_at
257
+
258
+ @updated_at.setter
259
+ def updated_at(self, updated_at):
260
+ """Sets the updated_at of this QueryAction.
261
+
262
+ 实例或节点动作更新时间。
263
+
264
+ :param updated_at: The updated_at of this QueryAction.
265
+ :type updated_at: int
266
+ """
267
+ self._updated_at = updated_at
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, QueryAction):
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
@@ -0,0 +1,173 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ReadableNodeInfos:
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
+ 'data_ip': 'str',
21
+ 'node_id': 'str',
22
+ 'node_name': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'data_ip': 'data_ip',
27
+ 'node_id': 'node_id',
28
+ 'node_name': 'node_name'
29
+ }
30
+
31
+ def __init__(self, data_ip=None, node_id=None, node_name=None):
32
+ """ReadableNodeInfos
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param data_ip: 可读节点IP。
37
+ :type data_ip: str
38
+ :param node_id: 可读节点ID。
39
+ :type node_id: str
40
+ :param node_name: 可读节点名称。
41
+ :type node_name: str
42
+ """
43
+
44
+
45
+
46
+ self._data_ip = None
47
+ self._node_id = None
48
+ self._node_name = None
49
+ self.discriminator = None
50
+
51
+ if data_ip is not None:
52
+ self.data_ip = data_ip
53
+ if node_id is not None:
54
+ self.node_id = node_id
55
+ if node_name is not None:
56
+ self.node_name = node_name
57
+
58
+ @property
59
+ def data_ip(self):
60
+ """Gets the data_ip of this ReadableNodeInfos.
61
+
62
+ 可读节点IP。
63
+
64
+ :return: The data_ip of this ReadableNodeInfos.
65
+ :rtype: str
66
+ """
67
+ return self._data_ip
68
+
69
+ @data_ip.setter
70
+ def data_ip(self, data_ip):
71
+ """Sets the data_ip of this ReadableNodeInfos.
72
+
73
+ 可读节点IP。
74
+
75
+ :param data_ip: The data_ip of this ReadableNodeInfos.
76
+ :type data_ip: str
77
+ """
78
+ self._data_ip = data_ip
79
+
80
+ @property
81
+ def node_id(self):
82
+ """Gets the node_id of this ReadableNodeInfos.
83
+
84
+ 可读节点ID。
85
+
86
+ :return: The node_id of this ReadableNodeInfos.
87
+ :rtype: str
88
+ """
89
+ return self._node_id
90
+
91
+ @node_id.setter
92
+ def node_id(self, node_id):
93
+ """Sets the node_id of this ReadableNodeInfos.
94
+
95
+ 可读节点ID。
96
+
97
+ :param node_id: The node_id of this ReadableNodeInfos.
98
+ :type node_id: str
99
+ """
100
+ self._node_id = node_id
101
+
102
+ @property
103
+ def node_name(self):
104
+ """Gets the node_name of this ReadableNodeInfos.
105
+
106
+ 可读节点名称。
107
+
108
+ :return: The node_name of this ReadableNodeInfos.
109
+ :rtype: str
110
+ """
111
+ return self._node_name
112
+
113
+ @node_name.setter
114
+ def node_name(self, node_name):
115
+ """Sets the node_name of this ReadableNodeInfos.
116
+
117
+ 可读节点名称。
118
+
119
+ :param node_name: The node_name of this ReadableNodeInfos.
120
+ :type node_name: str
121
+ """
122
+ self._node_name = node_name
123
+
124
+ def to_dict(self):
125
+ """Returns the model properties as a dict"""
126
+ result = {}
127
+
128
+ for attr, _ in six.iteritems(self.openapi_types):
129
+ value = getattr(self, attr)
130
+ if isinstance(value, list):
131
+ result[attr] = list(map(
132
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
133
+ value
134
+ ))
135
+ elif hasattr(value, "to_dict"):
136
+ result[attr] = value.to_dict()
137
+ elif isinstance(value, dict):
138
+ result[attr] = dict(map(
139
+ lambda item: (item[0], item[1].to_dict())
140
+ if hasattr(item[1], "to_dict") else item,
141
+ value.items()
142
+ ))
143
+ else:
144
+ if attr in self.sensitive_list:
145
+ result[attr] = "****"
146
+ else:
147
+ result[attr] = value
148
+
149
+ return result
150
+
151
+ def to_str(self):
152
+ """Returns the string representation of the model"""
153
+ import simplejson as json
154
+ if six.PY2:
155
+ import sys
156
+ reload(sys)
157
+ sys.setdefaultencoding("utf-8")
158
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
159
+
160
+ def __repr__(self):
161
+ """For `print`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, ReadableNodeInfos):
167
+ return False
168
+
169
+ return self.__dict__ == other.__dict__
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ return not self == other