huaweicloudsdkgaussdbforopengauss 3.1.126__py2.py3-none-any.whl → 3.1.128__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 (60) hide show
  1. huaweicloudsdkgaussdbforopengauss/v3/__init__.py +50 -0
  2. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +1315 -46
  3. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +1315 -46
  4. huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +50 -0
  5. huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request.py +168 -0
  6. huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request_body.py +142 -0
  7. huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_response.py +85 -0
  8. huaweicloudsdkgaussdbforopengauss/v3/model/batch_show_upgrade_candidate_versions_request.py +140 -0
  9. huaweicloudsdkgaussdbforopengauss/v3/model/batch_show_upgrade_candidate_versions_response.py +232 -0
  10. huaweicloudsdkgaussdbforopengauss/v3/model/can_be_rollbacked_hotfix_detail.py +202 -0
  11. huaweicloudsdkgaussdbforopengauss/v3/model/can_be_upgraded_hotfix_detail.py +202 -0
  12. huaweicloudsdkgaussdbforopengauss/v3/model/configurations_result.py +339 -0
  13. huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_request.py +140 -0
  14. huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_request_body.py +722 -0
  15. huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_response.py +170 -0
  16. huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_result.py +544 -0
  17. huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_request.py +168 -0
  18. huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_request_body.py +142 -0
  19. huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_response.py +85 -0
  20. huaweicloudsdkgaussdbforopengauss/v3/model/create_instance_datastore_option.py +143 -0
  21. huaweicloudsdkgaussdbforopengauss/v3/model/datastore_result.py +142 -0
  22. huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_request.py +168 -0
  23. huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_request_body.py +142 -0
  24. huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_response.py +85 -0
  25. huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_list_database_roles.py +201 -0
  26. huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_info_result.py +202 -0
  27. huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_details_request.py +318 -0
  28. huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_details_response.py +145 -0
  29. huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_result.py +372 -0
  30. huaweicloudsdkgaussdbforopengauss/v3/model/list_database_instances_request.py +405 -0
  31. huaweicloudsdkgaussdbforopengauss/v3/model/list_database_instances_response.py +145 -0
  32. huaweicloudsdkgaussdbforopengauss/v3/model/list_database_roles_request.py +201 -0
  33. huaweicloudsdkgaussdbforopengauss/v3/model/list_database_roles_response.py +145 -0
  34. huaweicloudsdkgaussdbforopengauss/v3/model/list_datastores_details_request.py +115 -0
  35. huaweicloudsdkgaussdbforopengauss/v3/model/list_datastores_details_response.py +112 -0
  36. huaweicloudsdkgaussdbforopengauss/v3/model/list_flavors_details_request.py +260 -0
  37. huaweicloudsdkgaussdbforopengauss/v3/model/list_flavors_details_response.py +145 -0
  38. huaweicloudsdkgaussdbforopengauss/v3/model/list_parameter_group_templates_request.py +173 -0
  39. huaweicloudsdkgaussdbforopengauss/v3/model/list_parameter_group_templates_response.py +145 -0
  40. huaweicloudsdkgaussdbforopengauss/v3/model/list_recycle_instances_details_request.py +202 -0
  41. huaweicloudsdkgaussdbforopengauss/v3/model/list_recycle_instances_details_response.py +145 -0
  42. huaweicloudsdkgaussdbforopengauss/v3/model/list_restorable_instances_details_request.py +259 -0
  43. huaweicloudsdkgaussdbforopengauss/v3/model/list_restorable_instances_details_response.py +145 -0
  44. huaweicloudsdkgaussdbforopengauss/v3/model/recycle_instances_detail_result_v1.py +566 -0
  45. huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_detail_request.py +143 -0
  46. huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_detail_response.py +232 -0
  47. huaweicloudsdkgaussdbforopengauss/v3/model/show_parameter_group_detail_request.py +143 -0
  48. huaweicloudsdkgaussdbforopengauss/v3/model/show_parameter_group_detail_response.py +319 -0
  49. huaweicloudsdkgaussdbforopengauss/v3/model/show_source_instance_detail_request.py +202 -0
  50. huaweicloudsdkgaussdbforopengauss/v3/model/show_source_instance_detail_response.py +348 -0
  51. huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_details_request.py +143 -0
  52. huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_details_response.py +373 -0
  53. huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py +18 -10
  54. huaweicloudsdkgaussdbforopengauss/v3/model/sync_limit_data_request.py +114 -0
  55. huaweicloudsdkgaussdbforopengauss/v3/model/sync_limit_data_response.py +203 -0
  56. {huaweicloudsdkgaussdbforopengauss-3.1.126.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info}/METADATA +2 -2
  57. {huaweicloudsdkgaussdbforopengauss-3.1.126.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info}/RECORD +60 -10
  58. {huaweicloudsdkgaussdbforopengauss-3.1.126.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info}/LICENSE +0 -0
  59. {huaweicloudsdkgaussdbforopengauss-3.1.126.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info}/WHEEL +0 -0
  60. {huaweicloudsdkgaussdbforopengauss-3.1.126.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,202 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CanBeUpgradedHotfixDetail:
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
+ 'version': 'str',
21
+ 'common_patch': 'str',
22
+ 'backup_sensitive': 'bool',
23
+ 'descripition': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'version': 'version',
28
+ 'common_patch': 'common_patch',
29
+ 'backup_sensitive': 'backup_sensitive',
30
+ 'descripition': 'descripition'
31
+ }
32
+
33
+ def __init__(self, version=None, common_patch=None, backup_sensitive=None, descripition=None):
34
+ """CanBeUpgradedHotfixDetail
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param version: 热补丁版本。
39
+ :type version: str
40
+ :param common_patch: 通用/非通用补丁信息。 枚举值: \"common\": 通用补丁。 \"certain\": 定制补丁。
41
+ :type common_patch: str
42
+ :param backup_sensitive: 是否和备份相关。
43
+ :type backup_sensitive: bool
44
+ :param descripition: 补丁的描述信息。
45
+ :type descripition: str
46
+ """
47
+
48
+
49
+
50
+ self._version = None
51
+ self._common_patch = None
52
+ self._backup_sensitive = None
53
+ self._descripition = None
54
+ self.discriminator = None
55
+
56
+ if version is not None:
57
+ self.version = version
58
+ if common_patch is not None:
59
+ self.common_patch = common_patch
60
+ if backup_sensitive is not None:
61
+ self.backup_sensitive = backup_sensitive
62
+ if descripition is not None:
63
+ self.descripition = descripition
64
+
65
+ @property
66
+ def version(self):
67
+ """Gets the version of this CanBeUpgradedHotfixDetail.
68
+
69
+ 热补丁版本。
70
+
71
+ :return: The version of this CanBeUpgradedHotfixDetail.
72
+ :rtype: str
73
+ """
74
+ return self._version
75
+
76
+ @version.setter
77
+ def version(self, version):
78
+ """Sets the version of this CanBeUpgradedHotfixDetail.
79
+
80
+ 热补丁版本。
81
+
82
+ :param version: The version of this CanBeUpgradedHotfixDetail.
83
+ :type version: str
84
+ """
85
+ self._version = version
86
+
87
+ @property
88
+ def common_patch(self):
89
+ """Gets the common_patch of this CanBeUpgradedHotfixDetail.
90
+
91
+ 通用/非通用补丁信息。 枚举值: \"common\": 通用补丁。 \"certain\": 定制补丁。
92
+
93
+ :return: The common_patch of this CanBeUpgradedHotfixDetail.
94
+ :rtype: str
95
+ """
96
+ return self._common_patch
97
+
98
+ @common_patch.setter
99
+ def common_patch(self, common_patch):
100
+ """Sets the common_patch of this CanBeUpgradedHotfixDetail.
101
+
102
+ 通用/非通用补丁信息。 枚举值: \"common\": 通用补丁。 \"certain\": 定制补丁。
103
+
104
+ :param common_patch: The common_patch of this CanBeUpgradedHotfixDetail.
105
+ :type common_patch: str
106
+ """
107
+ self._common_patch = common_patch
108
+
109
+ @property
110
+ def backup_sensitive(self):
111
+ """Gets the backup_sensitive of this CanBeUpgradedHotfixDetail.
112
+
113
+ 是否和备份相关。
114
+
115
+ :return: The backup_sensitive of this CanBeUpgradedHotfixDetail.
116
+ :rtype: bool
117
+ """
118
+ return self._backup_sensitive
119
+
120
+ @backup_sensitive.setter
121
+ def backup_sensitive(self, backup_sensitive):
122
+ """Sets the backup_sensitive of this CanBeUpgradedHotfixDetail.
123
+
124
+ 是否和备份相关。
125
+
126
+ :param backup_sensitive: The backup_sensitive of this CanBeUpgradedHotfixDetail.
127
+ :type backup_sensitive: bool
128
+ """
129
+ self._backup_sensitive = backup_sensitive
130
+
131
+ @property
132
+ def descripition(self):
133
+ """Gets the descripition of this CanBeUpgradedHotfixDetail.
134
+
135
+ 补丁的描述信息。
136
+
137
+ :return: The descripition of this CanBeUpgradedHotfixDetail.
138
+ :rtype: str
139
+ """
140
+ return self._descripition
141
+
142
+ @descripition.setter
143
+ def descripition(self, descripition):
144
+ """Sets the descripition of this CanBeUpgradedHotfixDetail.
145
+
146
+ 补丁的描述信息。
147
+
148
+ :param descripition: The descripition of this CanBeUpgradedHotfixDetail.
149
+ :type descripition: str
150
+ """
151
+ self._descripition = descripition
152
+
153
+ def to_dict(self):
154
+ """Returns the model properties as a dict"""
155
+ result = {}
156
+
157
+ for attr, _ in six.iteritems(self.openapi_types):
158
+ value = getattr(self, attr)
159
+ if isinstance(value, list):
160
+ result[attr] = list(map(
161
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
162
+ value
163
+ ))
164
+ elif hasattr(value, "to_dict"):
165
+ result[attr] = value.to_dict()
166
+ elif isinstance(value, dict):
167
+ result[attr] = dict(map(
168
+ lambda item: (item[0], item[1].to_dict())
169
+ if hasattr(item[1], "to_dict") else item,
170
+ value.items()
171
+ ))
172
+ else:
173
+ if attr in self.sensitive_list:
174
+ result[attr] = "****"
175
+ else:
176
+ result[attr] = value
177
+
178
+ return result
179
+
180
+ def to_str(self):
181
+ """Returns the string representation of the model"""
182
+ import simplejson as json
183
+ if six.PY2:
184
+ import sys
185
+ reload(sys)
186
+ sys.setdefaultencoding("utf-8")
187
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
188
+
189
+ def __repr__(self):
190
+ """For `print`"""
191
+ return self.to_str()
192
+
193
+ def __eq__(self, other):
194
+ """Returns true if both objects are equal"""
195
+ if not isinstance(other, CanBeUpgradedHotfixDetail):
196
+ return False
197
+
198
+ return self.__dict__ == other.__dict__
199
+
200
+ def __ne__(self, other):
201
+ """Returns true if both objects are not equal"""
202
+ 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 ConfigurationsResult:
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
+ """ConfigurationsResult
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 ConfigurationsResult.
95
+
96
+ 参数组ID。
97
+
98
+ :return: The id of this ConfigurationsResult.
99
+ :rtype: str
100
+ """
101
+ return self._id
102
+
103
+ @id.setter
104
+ def id(self, id):
105
+ """Sets the id of this ConfigurationsResult.
106
+
107
+ 参数组ID。
108
+
109
+ :param id: The id of this ConfigurationsResult.
110
+ :type id: str
111
+ """
112
+ self._id = id
113
+
114
+ @property
115
+ def name(self):
116
+ """Gets the name of this ConfigurationsResult.
117
+
118
+ 参数组名称。
119
+
120
+ :return: The name of this ConfigurationsResult.
121
+ :rtype: str
122
+ """
123
+ return self._name
124
+
125
+ @name.setter
126
+ def name(self, name):
127
+ """Sets the name of this ConfigurationsResult.
128
+
129
+ 参数组名称。
130
+
131
+ :param name: The name of this ConfigurationsResult.
132
+ :type name: str
133
+ """
134
+ self._name = name
135
+
136
+ @property
137
+ def description(self):
138
+ """Gets the description of this ConfigurationsResult.
139
+
140
+ 参数组描述。
141
+
142
+ :return: The description of this ConfigurationsResult.
143
+ :rtype: str
144
+ """
145
+ return self._description
146
+
147
+ @description.setter
148
+ def description(self, description):
149
+ """Sets the description of this ConfigurationsResult.
150
+
151
+ 参数组描述。
152
+
153
+ :param description: The description of this ConfigurationsResult.
154
+ :type description: str
155
+ """
156
+ self._description = description
157
+
158
+ @property
159
+ def datastore_version(self):
160
+ """Gets the datastore_version of this ConfigurationsResult.
161
+
162
+ 引擎版本。
163
+
164
+ :return: The datastore_version of this ConfigurationsResult.
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 ConfigurationsResult.
172
+
173
+ 引擎版本。
174
+
175
+ :param datastore_version: The datastore_version of this ConfigurationsResult.
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 ConfigurationsResult.
183
+
184
+ 引擎名称。
185
+
186
+ :return: The datastore_name of this ConfigurationsResult.
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 ConfigurationsResult.
194
+
195
+ 引擎名称。
196
+
197
+ :param datastore_name: The datastore_name of this ConfigurationsResult.
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 ConfigurationsResult.
205
+
206
+ 实例类型。
207
+
208
+ :return: The ha_mode of this ConfigurationsResult.
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 ConfigurationsResult.
216
+
217
+ 实例类型。
218
+
219
+ :param ha_mode: The ha_mode of this ConfigurationsResult.
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 ConfigurationsResult.
227
+
228
+ 创建时间,格式为\"yyyy-MM-dd HH:mm:ss\"。
229
+
230
+ :return: The created of this ConfigurationsResult.
231
+ :rtype: str
232
+ """
233
+ return self._created
234
+
235
+ @created.setter
236
+ def created(self, created):
237
+ """Sets the created of this ConfigurationsResult.
238
+
239
+ 创建时间,格式为\"yyyy-MM-dd HH:mm:ss\"。
240
+
241
+ :param created: The created of this ConfigurationsResult.
242
+ :type created: str
243
+ """
244
+ self._created = created
245
+
246
+ @property
247
+ def updated(self):
248
+ """Gets the updated of this ConfigurationsResult.
249
+
250
+ 更新时间,格式为\"yyyy-MM-dd HH:mm:ss\"。
251
+
252
+ :return: The updated of this ConfigurationsResult.
253
+ :rtype: str
254
+ """
255
+ return self._updated
256
+
257
+ @updated.setter
258
+ def updated(self, updated):
259
+ """Sets the updated of this ConfigurationsResult.
260
+
261
+ 更新时间,格式为\"yyyy-MM-dd HH:mm:ss\"。
262
+
263
+ :param updated: The updated of this ConfigurationsResult.
264
+ :type updated: str
265
+ """
266
+ self._updated = updated
267
+
268
+ @property
269
+ def user_defined(self):
270
+ """Gets the user_defined of this ConfigurationsResult.
271
+
272
+ 是否是用户自定义参数模板: - false,表示为系统默认参数模板。 - true,表示为用户自定义参数模板。
273
+
274
+ :return: The user_defined of this ConfigurationsResult.
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 ConfigurationsResult.
282
+
283
+ 是否是用户自定义参数模板: - false,表示为系统默认参数模板。 - true,表示为用户自定义参数模板。
284
+
285
+ :param user_defined: The user_defined of this ConfigurationsResult.
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, ConfigurationsResult):
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
@@ -0,0 +1,140 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateDatabaseInstanceRequest:
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_language': 'str',
21
+ 'body': 'CreateDatabaseInstanceRequestBody'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'x_language': 'X-Language',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, x_language=None, body=None):
30
+ """CreateDatabaseInstanceRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param x_language: 语言
35
+ :type x_language: str
36
+ :param body: Body of the CreateDatabaseInstanceRequest
37
+ :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDatabaseInstanceRequestBody`
38
+ """
39
+
40
+
41
+
42
+ self._x_language = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ if x_language is not None:
47
+ self.x_language = x_language
48
+ if body is not None:
49
+ self.body = body
50
+
51
+ @property
52
+ def x_language(self):
53
+ """Gets the x_language of this CreateDatabaseInstanceRequest.
54
+
55
+ 语言
56
+
57
+ :return: The x_language of this CreateDatabaseInstanceRequest.
58
+ :rtype: str
59
+ """
60
+ return self._x_language
61
+
62
+ @x_language.setter
63
+ def x_language(self, x_language):
64
+ """Sets the x_language of this CreateDatabaseInstanceRequest.
65
+
66
+ 语言
67
+
68
+ :param x_language: The x_language of this CreateDatabaseInstanceRequest.
69
+ :type x_language: str
70
+ """
71
+ self._x_language = x_language
72
+
73
+ @property
74
+ def body(self):
75
+ """Gets the body of this CreateDatabaseInstanceRequest.
76
+
77
+ :return: The body of this CreateDatabaseInstanceRequest.
78
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDatabaseInstanceRequestBody`
79
+ """
80
+ return self._body
81
+
82
+ @body.setter
83
+ def body(self, body):
84
+ """Sets the body of this CreateDatabaseInstanceRequest.
85
+
86
+ :param body: The body of this CreateDatabaseInstanceRequest.
87
+ :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDatabaseInstanceRequestBody`
88
+ """
89
+ self._body = body
90
+
91
+ def to_dict(self):
92
+ """Returns the model properties as a dict"""
93
+ result = {}
94
+
95
+ for attr, _ in six.iteritems(self.openapi_types):
96
+ value = getattr(self, attr)
97
+ if isinstance(value, list):
98
+ result[attr] = list(map(
99
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
100
+ value
101
+ ))
102
+ elif hasattr(value, "to_dict"):
103
+ result[attr] = value.to_dict()
104
+ elif isinstance(value, dict):
105
+ result[attr] = dict(map(
106
+ lambda item: (item[0], item[1].to_dict())
107
+ if hasattr(item[1], "to_dict") else item,
108
+ value.items()
109
+ ))
110
+ else:
111
+ if attr in self.sensitive_list:
112
+ result[attr] = "****"
113
+ else:
114
+ result[attr] = value
115
+
116
+ return result
117
+
118
+ def to_str(self):
119
+ """Returns the string representation of the model"""
120
+ import simplejson as json
121
+ if six.PY2:
122
+ import sys
123
+ reload(sys)
124
+ sys.setdefaultencoding("utf-8")
125
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
126
+
127
+ def __repr__(self):
128
+ """For `print`"""
129
+ return self.to_str()
130
+
131
+ def __eq__(self, other):
132
+ """Returns true if both objects are equal"""
133
+ if not isinstance(other, CreateDatabaseInstanceRequest):
134
+ return False
135
+
136
+ return self.__dict__ == other.__dict__
137
+
138
+ def __ne__(self, other):
139
+ """Returns true if both objects are not equal"""
140
+ return not self == other