huaweicloudsdkgaussdbforopengauss 3.1.42__py2.py3-none-any.whl → 3.1.44__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 (35) hide show
  1. huaweicloudsdkgaussdbforopengauss/v3/__init__.py +26 -0
  2. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +393 -0
  3. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +387 -0
  4. huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +26 -0
  5. huaweicloudsdkgaussdbforopengauss/v3/model/backups_result.py +372 -0
  6. huaweicloudsdkgaussdbforopengauss/v3/model/configuration_result.py +339 -0
  7. huaweicloudsdkgaussdbforopengauss/v3/model/create_db_instance_request.py +140 -0
  8. huaweicloudsdkgaussdbforopengauss/v3/model/create_db_instance_response.py +170 -0
  9. huaweicloudsdkgaussdbforopengauss/v3/model/flavor_result.py +310 -0
  10. huaweicloudsdkgaussdbforopengauss/v3/model/list_db_backups_request.py +318 -0
  11. huaweicloudsdkgaussdbforopengauss/v3/model/list_db_backups_response.py +145 -0
  12. huaweicloudsdkgaussdbforopengauss/v3/model/list_db_flavors_request.py +260 -0
  13. huaweicloudsdkgaussdbforopengauss/v3/model/list_db_flavors_response.py +145 -0
  14. huaweicloudsdkgaussdbforopengauss/v3/model/list_ha_result.py +142 -0
  15. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_result.py +932 -0
  16. huaweicloudsdkgaussdbforopengauss/v3/model/list_instances_details_request.py +376 -0
  17. huaweicloudsdkgaussdbforopengauss/v3/model/list_instances_details_response.py +145 -0
  18. huaweicloudsdkgaussdbforopengauss/v3/model/list_param_group_templates_request.py +173 -0
  19. huaweicloudsdkgaussdbforopengauss/v3/model/list_param_group_templates_response.py +145 -0
  20. huaweicloudsdkgaussdbforopengauss/v3/model/node_result.py +311 -0
  21. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_datastore_option.py +143 -0
  22. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_datastore_result.py +142 -0
  23. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_ha_option.py +170 -0
  24. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_ha_result.py +170 -0
  25. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_instance_request_body.py +693 -0
  26. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_instance_result.py +544 -0
  27. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_volume_result.py +142 -0
  28. huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_request.py +143 -0
  29. huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_response.py +232 -0
  30. huaweicloudsdkgaussdbforopengauss/v3/model/tag_result.py +142 -0
  31. {huaweicloudsdkgaussdbforopengauss-3.1.42.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.44.dist-info}/METADATA +2 -2
  32. {huaweicloudsdkgaussdbforopengauss-3.1.42.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.44.dist-info}/RECORD +35 -9
  33. {huaweicloudsdkgaussdbforopengauss-3.1.42.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.44.dist-info}/LICENSE +0 -0
  34. {huaweicloudsdkgaussdbforopengauss-3.1.42.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.44.dist-info}/WHEEL +0 -0
  35. {huaweicloudsdkgaussdbforopengauss-3.1.42.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.44.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,372 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BackupsResult:
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
+ 'description': 'str',
23
+ 'begin_time': 'str',
24
+ 'end_time': 'str',
25
+ 'status': 'str',
26
+ 'size': 'float',
27
+ 'type': 'str',
28
+ 'datastore': 'OpenGaussDatastoreResult',
29
+ 'instance_id': 'str'
30
+ }
31
+
32
+ attribute_map = {
33
+ 'id': 'id',
34
+ 'name': 'name',
35
+ 'description': 'description',
36
+ 'begin_time': 'begin_time',
37
+ 'end_time': 'end_time',
38
+ 'status': 'status',
39
+ 'size': 'size',
40
+ 'type': 'type',
41
+ 'datastore': 'datastore',
42
+ 'instance_id': 'instance_id'
43
+ }
44
+
45
+ def __init__(self, id=None, name=None, description=None, begin_time=None, end_time=None, status=None, size=None, type=None, datastore=None, instance_id=None):
46
+ """BackupsResult
47
+
48
+ The model defined in huaweicloud sdk
49
+
50
+ :param id: 备份ID。
51
+ :type id: str
52
+ :param name: 备份名称。
53
+ :type name: str
54
+ :param description: 备份文件描述信息。
55
+ :type description: str
56
+ :param begin_time: 备份开始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
57
+ :type begin_time: str
58
+ :param end_time: 备份结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
59
+ :type end_time: str
60
+ :param status: 备份状态
61
+ :type status: str
62
+ :param size: 备份大小(单位:MB)
63
+ :type size: float
64
+ :param type: 备份类型
65
+ :type type: str
66
+ :param datastore:
67
+ :type datastore: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussDatastoreResult`
68
+ :param instance_id: 实例ID。
69
+ :type instance_id: str
70
+ """
71
+
72
+
73
+
74
+ self._id = None
75
+ self._name = None
76
+ self._description = None
77
+ self._begin_time = None
78
+ self._end_time = None
79
+ self._status = None
80
+ self._size = None
81
+ self._type = None
82
+ self._datastore = None
83
+ self._instance_id = None
84
+ self.discriminator = None
85
+
86
+ if id is not None:
87
+ self.id = id
88
+ if name is not None:
89
+ self.name = name
90
+ if description is not None:
91
+ self.description = description
92
+ if begin_time is not None:
93
+ self.begin_time = begin_time
94
+ if end_time is not None:
95
+ self.end_time = end_time
96
+ if status is not None:
97
+ self.status = status
98
+ if size is not None:
99
+ self.size = size
100
+ if type is not None:
101
+ self.type = type
102
+ if datastore is not None:
103
+ self.datastore = datastore
104
+ if instance_id is not None:
105
+ self.instance_id = instance_id
106
+
107
+ @property
108
+ def id(self):
109
+ """Gets the id of this BackupsResult.
110
+
111
+ 备份ID。
112
+
113
+ :return: The id of this BackupsResult.
114
+ :rtype: str
115
+ """
116
+ return self._id
117
+
118
+ @id.setter
119
+ def id(self, id):
120
+ """Sets the id of this BackupsResult.
121
+
122
+ 备份ID。
123
+
124
+ :param id: The id of this BackupsResult.
125
+ :type id: str
126
+ """
127
+ self._id = id
128
+
129
+ @property
130
+ def name(self):
131
+ """Gets the name of this BackupsResult.
132
+
133
+ 备份名称。
134
+
135
+ :return: The name of this BackupsResult.
136
+ :rtype: str
137
+ """
138
+ return self._name
139
+
140
+ @name.setter
141
+ def name(self, name):
142
+ """Sets the name of this BackupsResult.
143
+
144
+ 备份名称。
145
+
146
+ :param name: The name of this BackupsResult.
147
+ :type name: str
148
+ """
149
+ self._name = name
150
+
151
+ @property
152
+ def description(self):
153
+ """Gets the description of this BackupsResult.
154
+
155
+ 备份文件描述信息。
156
+
157
+ :return: The description of this BackupsResult.
158
+ :rtype: str
159
+ """
160
+ return self._description
161
+
162
+ @description.setter
163
+ def description(self, description):
164
+ """Sets the description of this BackupsResult.
165
+
166
+ 备份文件描述信息。
167
+
168
+ :param description: The description of this BackupsResult.
169
+ :type description: str
170
+ """
171
+ self._description = description
172
+
173
+ @property
174
+ def begin_time(self):
175
+ """Gets the begin_time of this BackupsResult.
176
+
177
+ 备份开始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
178
+
179
+ :return: The begin_time of this BackupsResult.
180
+ :rtype: str
181
+ """
182
+ return self._begin_time
183
+
184
+ @begin_time.setter
185
+ def begin_time(self, begin_time):
186
+ """Sets the begin_time of this BackupsResult.
187
+
188
+ 备份开始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
189
+
190
+ :param begin_time: The begin_time of this BackupsResult.
191
+ :type begin_time: str
192
+ """
193
+ self._begin_time = begin_time
194
+
195
+ @property
196
+ def end_time(self):
197
+ """Gets the end_time of this BackupsResult.
198
+
199
+ 备份结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
200
+
201
+ :return: The end_time of this BackupsResult.
202
+ :rtype: str
203
+ """
204
+ return self._end_time
205
+
206
+ @end_time.setter
207
+ def end_time(self, end_time):
208
+ """Sets the end_time of this BackupsResult.
209
+
210
+ 备份结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
211
+
212
+ :param end_time: The end_time of this BackupsResult.
213
+ :type end_time: str
214
+ """
215
+ self._end_time = end_time
216
+
217
+ @property
218
+ def status(self):
219
+ """Gets the status of this BackupsResult.
220
+
221
+ 备份状态
222
+
223
+ :return: The status of this BackupsResult.
224
+ :rtype: str
225
+ """
226
+ return self._status
227
+
228
+ @status.setter
229
+ def status(self, status):
230
+ """Sets the status of this BackupsResult.
231
+
232
+ 备份状态
233
+
234
+ :param status: The status of this BackupsResult.
235
+ :type status: str
236
+ """
237
+ self._status = status
238
+
239
+ @property
240
+ def size(self):
241
+ """Gets the size of this BackupsResult.
242
+
243
+ 备份大小(单位:MB)
244
+
245
+ :return: The size of this BackupsResult.
246
+ :rtype: float
247
+ """
248
+ return self._size
249
+
250
+ @size.setter
251
+ def size(self, size):
252
+ """Sets the size of this BackupsResult.
253
+
254
+ 备份大小(单位:MB)
255
+
256
+ :param size: The size of this BackupsResult.
257
+ :type size: float
258
+ """
259
+ self._size = size
260
+
261
+ @property
262
+ def type(self):
263
+ """Gets the type of this BackupsResult.
264
+
265
+ 备份类型
266
+
267
+ :return: The type of this BackupsResult.
268
+ :rtype: str
269
+ """
270
+ return self._type
271
+
272
+ @type.setter
273
+ def type(self, type):
274
+ """Sets the type of this BackupsResult.
275
+
276
+ 备份类型
277
+
278
+ :param type: The type of this BackupsResult.
279
+ :type type: str
280
+ """
281
+ self._type = type
282
+
283
+ @property
284
+ def datastore(self):
285
+ """Gets the datastore of this BackupsResult.
286
+
287
+ :return: The datastore of this BackupsResult.
288
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussDatastoreResult`
289
+ """
290
+ return self._datastore
291
+
292
+ @datastore.setter
293
+ def datastore(self, datastore):
294
+ """Sets the datastore of this BackupsResult.
295
+
296
+ :param datastore: The datastore of this BackupsResult.
297
+ :type datastore: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussDatastoreResult`
298
+ """
299
+ self._datastore = datastore
300
+
301
+ @property
302
+ def instance_id(self):
303
+ """Gets the instance_id of this BackupsResult.
304
+
305
+ 实例ID。
306
+
307
+ :return: The instance_id of this BackupsResult.
308
+ :rtype: str
309
+ """
310
+ return self._instance_id
311
+
312
+ @instance_id.setter
313
+ def instance_id(self, instance_id):
314
+ """Sets the instance_id of this BackupsResult.
315
+
316
+ 实例ID。
317
+
318
+ :param instance_id: The instance_id of this BackupsResult.
319
+ :type instance_id: str
320
+ """
321
+ self._instance_id = instance_id
322
+
323
+ def to_dict(self):
324
+ """Returns the model properties as a dict"""
325
+ result = {}
326
+
327
+ for attr, _ in six.iteritems(self.openapi_types):
328
+ value = getattr(self, attr)
329
+ if isinstance(value, list):
330
+ result[attr] = list(map(
331
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
332
+ value
333
+ ))
334
+ elif hasattr(value, "to_dict"):
335
+ result[attr] = value.to_dict()
336
+ elif isinstance(value, dict):
337
+ result[attr] = dict(map(
338
+ lambda item: (item[0], item[1].to_dict())
339
+ if hasattr(item[1], "to_dict") else item,
340
+ value.items()
341
+ ))
342
+ else:
343
+ if attr in self.sensitive_list:
344
+ result[attr] = "****"
345
+ else:
346
+ result[attr] = value
347
+
348
+ return result
349
+
350
+ def to_str(self):
351
+ """Returns the string representation of the model"""
352
+ import simplejson as json
353
+ if six.PY2:
354
+ import sys
355
+ reload(sys)
356
+ sys.setdefaultencoding("utf-8")
357
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
358
+
359
+ def __repr__(self):
360
+ """For `print`"""
361
+ return self.to_str()
362
+
363
+ def __eq__(self, other):
364
+ """Returns true if both objects are equal"""
365
+ if not isinstance(other, BackupsResult):
366
+ return False
367
+
368
+ return self.__dict__ == other.__dict__
369
+
370
+ def __ne__(self, other):
371
+ """Returns true if both objects are not equal"""
372
+ return not self == other
@@ -0,0 +1,339 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ConfigurationResult:
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
+ 'description': 'str',
23
+ 'datastore_version': 'str',
24
+ 'datastore_name': 'str',
25
+ 'ha_mode': 'str',
26
+ 'created': 'str',
27
+ 'updated': 'str',
28
+ 'user_defined': 'bool'
29
+ }
30
+
31
+ attribute_map = {
32
+ 'id': 'id',
33
+ 'name': 'name',
34
+ 'description': 'description',
35
+ 'datastore_version': 'datastore_version',
36
+ 'datastore_name': 'datastore_name',
37
+ 'ha_mode': 'ha_mode',
38
+ 'created': 'created',
39
+ 'updated': 'updated',
40
+ 'user_defined': 'user_defined'
41
+ }
42
+
43
+ def __init__(self, id=None, name=None, description=None, datastore_version=None, datastore_name=None, ha_mode=None, created=None, updated=None, user_defined=None):
44
+ """ConfigurationResult
45
+
46
+ The model defined in huaweicloud sdk
47
+
48
+ :param id: 参数组ID。
49
+ :type id: str
50
+ :param name: 参数组名称。
51
+ :type name: str
52
+ :param description: 参数组描述。
53
+ :type description: str
54
+ :param datastore_version: 引擎版本。
55
+ :type datastore_version: str
56
+ :param datastore_name: 引擎名称。
57
+ :type datastore_name: str
58
+ :param ha_mode: 实例类型。
59
+ :type ha_mode: str
60
+ :param created: 创建时间,格式为\"yyyy-MM-dd HH:mm:ss\"。
61
+ :type created: str
62
+ :param updated: 更新时间,格式为\"yyyy-MM-dd HH:mm:ss\"。
63
+ :type updated: str
64
+ :param user_defined: 是否是用户自定义参数模板: - false,表示为系统默认参数模板。 - true,表示为用户自定义参数模板。
65
+ :type user_defined: bool
66
+ """
67
+
68
+
69
+
70
+ self._id = None
71
+ self._name = None
72
+ self._description = None
73
+ self._datastore_version = None
74
+ self._datastore_name = None
75
+ self._ha_mode = None
76
+ self._created = None
77
+ self._updated = None
78
+ self._user_defined = None
79
+ self.discriminator = None
80
+
81
+ self.id = id
82
+ self.name = name
83
+ if description is not None:
84
+ self.description = description
85
+ self.datastore_version = datastore_version
86
+ self.datastore_name = datastore_name
87
+ self.ha_mode = ha_mode
88
+ self.created = created
89
+ self.updated = updated
90
+ self.user_defined = user_defined
91
+
92
+ @property
93
+ def id(self):
94
+ """Gets the id of this ConfigurationResult.
95
+
96
+ 参数组ID。
97
+
98
+ :return: The id of this ConfigurationResult.
99
+ :rtype: str
100
+ """
101
+ return self._id
102
+
103
+ @id.setter
104
+ def id(self, id):
105
+ """Sets the id of this ConfigurationResult.
106
+
107
+ 参数组ID。
108
+
109
+ :param id: The id of this ConfigurationResult.
110
+ :type id: str
111
+ """
112
+ self._id = id
113
+
114
+ @property
115
+ def name(self):
116
+ """Gets the name of this ConfigurationResult.
117
+
118
+ 参数组名称。
119
+
120
+ :return: The name of this ConfigurationResult.
121
+ :rtype: str
122
+ """
123
+ return self._name
124
+
125
+ @name.setter
126
+ def name(self, name):
127
+ """Sets the name of this ConfigurationResult.
128
+
129
+ 参数组名称。
130
+
131
+ :param name: The name of this ConfigurationResult.
132
+ :type name: str
133
+ """
134
+ self._name = name
135
+
136
+ @property
137
+ def description(self):
138
+ """Gets the description of this ConfigurationResult.
139
+
140
+ 参数组描述。
141
+
142
+ :return: The description of this ConfigurationResult.
143
+ :rtype: str
144
+ """
145
+ return self._description
146
+
147
+ @description.setter
148
+ def description(self, description):
149
+ """Sets the description of this ConfigurationResult.
150
+
151
+ 参数组描述。
152
+
153
+ :param description: The description of this ConfigurationResult.
154
+ :type description: str
155
+ """
156
+ self._description = description
157
+
158
+ @property
159
+ def datastore_version(self):
160
+ """Gets the datastore_version of this ConfigurationResult.
161
+
162
+ 引擎版本。
163
+
164
+ :return: The datastore_version of this ConfigurationResult.
165
+ :rtype: str
166
+ """
167
+ return self._datastore_version
168
+
169
+ @datastore_version.setter
170
+ def datastore_version(self, datastore_version):
171
+ """Sets the datastore_version of this ConfigurationResult.
172
+
173
+ 引擎版本。
174
+
175
+ :param datastore_version: The datastore_version of this ConfigurationResult.
176
+ :type datastore_version: str
177
+ """
178
+ self._datastore_version = datastore_version
179
+
180
+ @property
181
+ def datastore_name(self):
182
+ """Gets the datastore_name of this ConfigurationResult.
183
+
184
+ 引擎名称。
185
+
186
+ :return: The datastore_name of this ConfigurationResult.
187
+ :rtype: str
188
+ """
189
+ return self._datastore_name
190
+
191
+ @datastore_name.setter
192
+ def datastore_name(self, datastore_name):
193
+ """Sets the datastore_name of this ConfigurationResult.
194
+
195
+ 引擎名称。
196
+
197
+ :param datastore_name: The datastore_name of this ConfigurationResult.
198
+ :type datastore_name: str
199
+ """
200
+ self._datastore_name = datastore_name
201
+
202
+ @property
203
+ def ha_mode(self):
204
+ """Gets the ha_mode of this ConfigurationResult.
205
+
206
+ 实例类型。
207
+
208
+ :return: The ha_mode of this ConfigurationResult.
209
+ :rtype: str
210
+ """
211
+ return self._ha_mode
212
+
213
+ @ha_mode.setter
214
+ def ha_mode(self, ha_mode):
215
+ """Sets the ha_mode of this ConfigurationResult.
216
+
217
+ 实例类型。
218
+
219
+ :param ha_mode: The ha_mode of this ConfigurationResult.
220
+ :type ha_mode: str
221
+ """
222
+ self._ha_mode = ha_mode
223
+
224
+ @property
225
+ def created(self):
226
+ """Gets the created of this ConfigurationResult.
227
+
228
+ 创建时间,格式为\"yyyy-MM-dd HH:mm:ss\"。
229
+
230
+ :return: The created of this ConfigurationResult.
231
+ :rtype: str
232
+ """
233
+ return self._created
234
+
235
+ @created.setter
236
+ def created(self, created):
237
+ """Sets the created of this ConfigurationResult.
238
+
239
+ 创建时间,格式为\"yyyy-MM-dd HH:mm:ss\"。
240
+
241
+ :param created: The created of this ConfigurationResult.
242
+ :type created: str
243
+ """
244
+ self._created = created
245
+
246
+ @property
247
+ def updated(self):
248
+ """Gets the updated of this ConfigurationResult.
249
+
250
+ 更新时间,格式为\"yyyy-MM-dd HH:mm:ss\"。
251
+
252
+ :return: The updated of this ConfigurationResult.
253
+ :rtype: str
254
+ """
255
+ return self._updated
256
+
257
+ @updated.setter
258
+ def updated(self, updated):
259
+ """Sets the updated of this ConfigurationResult.
260
+
261
+ 更新时间,格式为\"yyyy-MM-dd HH:mm:ss\"。
262
+
263
+ :param updated: The updated of this ConfigurationResult.
264
+ :type updated: str
265
+ """
266
+ self._updated = updated
267
+
268
+ @property
269
+ def user_defined(self):
270
+ """Gets the user_defined of this ConfigurationResult.
271
+
272
+ 是否是用户自定义参数模板: - false,表示为系统默认参数模板。 - true,表示为用户自定义参数模板。
273
+
274
+ :return: The user_defined of this ConfigurationResult.
275
+ :rtype: bool
276
+ """
277
+ return self._user_defined
278
+
279
+ @user_defined.setter
280
+ def user_defined(self, user_defined):
281
+ """Sets the user_defined of this ConfigurationResult.
282
+
283
+ 是否是用户自定义参数模板: - false,表示为系统默认参数模板。 - true,表示为用户自定义参数模板。
284
+
285
+ :param user_defined: The user_defined of this ConfigurationResult.
286
+ :type user_defined: bool
287
+ """
288
+ self._user_defined = user_defined
289
+
290
+ def to_dict(self):
291
+ """Returns the model properties as a dict"""
292
+ result = {}
293
+
294
+ for attr, _ in six.iteritems(self.openapi_types):
295
+ value = getattr(self, attr)
296
+ if isinstance(value, list):
297
+ result[attr] = list(map(
298
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
299
+ value
300
+ ))
301
+ elif hasattr(value, "to_dict"):
302
+ result[attr] = value.to_dict()
303
+ elif isinstance(value, dict):
304
+ result[attr] = dict(map(
305
+ lambda item: (item[0], item[1].to_dict())
306
+ if hasattr(item[1], "to_dict") else item,
307
+ value.items()
308
+ ))
309
+ else:
310
+ if attr in self.sensitive_list:
311
+ result[attr] = "****"
312
+ else:
313
+ result[attr] = value
314
+
315
+ return result
316
+
317
+ def to_str(self):
318
+ """Returns the string representation of the model"""
319
+ import simplejson as json
320
+ if six.PY2:
321
+ import sys
322
+ reload(sys)
323
+ sys.setdefaultencoding("utf-8")
324
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
325
+
326
+ def __repr__(self):
327
+ """For `print`"""
328
+ return self.to_str()
329
+
330
+ def __eq__(self, other):
331
+ """Returns true if both objects are equal"""
332
+ if not isinstance(other, ConfigurationResult):
333
+ return False
334
+
335
+ return self.__dict__ == other.__dict__
336
+
337
+ def __ne__(self, other):
338
+ """Returns true if both objects are not equal"""
339
+ return not self == other