huaweicloudsdkgaussdbforopengauss 3.1.127__py2.py3-none-any.whl → 3.1.129__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 (62) hide show
  1. huaweicloudsdkgaussdbforopengauss/v3/__init__.py +52 -0
  2. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +1315 -46
  3. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +1315 -46
  4. huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +52 -0
  5. huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request.py +168 -0
  6. huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request_body.py +138 -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_d_bfor_open_gauss_role_attributes.py +199 -0
  26. huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_list_database_roles.py +197 -0
  27. huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_list_database_roles_priv.py +347 -0
  28. huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_info_result.py +202 -0
  29. huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_details_request.py +318 -0
  30. huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_details_response.py +145 -0
  31. huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_result.py +372 -0
  32. huaweicloudsdkgaussdbforopengauss/v3/model/list_database_instances_request.py +405 -0
  33. huaweicloudsdkgaussdbforopengauss/v3/model/list_database_instances_response.py +145 -0
  34. huaweicloudsdkgaussdbforopengauss/v3/model/list_database_roles_request.py +201 -0
  35. huaweicloudsdkgaussdbforopengauss/v3/model/list_database_roles_response.py +145 -0
  36. huaweicloudsdkgaussdbforopengauss/v3/model/list_datastores_details_request.py +115 -0
  37. huaweicloudsdkgaussdbforopengauss/v3/model/list_datastores_details_response.py +112 -0
  38. huaweicloudsdkgaussdbforopengauss/v3/model/list_flavors_details_request.py +260 -0
  39. huaweicloudsdkgaussdbforopengauss/v3/model/list_flavors_details_response.py +145 -0
  40. huaweicloudsdkgaussdbforopengauss/v3/model/list_parameter_group_templates_request.py +173 -0
  41. huaweicloudsdkgaussdbforopengauss/v3/model/list_parameter_group_templates_response.py +145 -0
  42. huaweicloudsdkgaussdbforopengauss/v3/model/list_recycle_instances_details_request.py +202 -0
  43. huaweicloudsdkgaussdbforopengauss/v3/model/list_recycle_instances_details_response.py +145 -0
  44. huaweicloudsdkgaussdbforopengauss/v3/model/list_restorable_instances_details_request.py +259 -0
  45. huaweicloudsdkgaussdbforopengauss/v3/model/list_restorable_instances_details_response.py +145 -0
  46. huaweicloudsdkgaussdbforopengauss/v3/model/recycle_instances_detail_result_v1.py +566 -0
  47. huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_detail_request.py +143 -0
  48. huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_detail_response.py +232 -0
  49. huaweicloudsdkgaussdbforopengauss/v3/model/show_parameter_group_detail_request.py +143 -0
  50. huaweicloudsdkgaussdbforopengauss/v3/model/show_parameter_group_detail_response.py +319 -0
  51. huaweicloudsdkgaussdbforopengauss/v3/model/show_source_instance_detail_request.py +202 -0
  52. huaweicloudsdkgaussdbforopengauss/v3/model/show_source_instance_detail_response.py +348 -0
  53. huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_details_request.py +143 -0
  54. huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_details_response.py +373 -0
  55. huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py +18 -10
  56. huaweicloudsdkgaussdbforopengauss/v3/model/sync_limit_data_request.py +114 -0
  57. huaweicloudsdkgaussdbforopengauss/v3/model/sync_limit_data_response.py +203 -0
  58. {huaweicloudsdkgaussdbforopengauss-3.1.127.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.129.dist-info}/METADATA +2 -2
  59. {huaweicloudsdkgaussdbforopengauss-3.1.127.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.129.dist-info}/RECORD +62 -10
  60. {huaweicloudsdkgaussdbforopengauss-3.1.127.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.129.dist-info}/LICENSE +0 -0
  61. {huaweicloudsdkgaussdbforopengauss-3.1.127.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.129.dist-info}/WHEEL +0 -0
  62. {huaweicloudsdkgaussdbforopengauss-3.1.127.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.129.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,347 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class GaussDBListDatabaseRolesPriv:
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
+ 'rolsuper': 'bool',
21
+ 'rolinherit': 'bool',
22
+ 'rolcreaterole': 'bool',
23
+ 'rolcreatedb': 'bool',
24
+ 'rolcanlogin': 'bool',
25
+ 'rolconnlimit': 'int',
26
+ 'rolreplication': 'bool',
27
+ 'rolbypassrls': 'bool',
28
+ 'rolpassworddeadline': 'str'
29
+ }
30
+
31
+ attribute_map = {
32
+ 'rolsuper': 'rolsuper',
33
+ 'rolinherit': 'rolinherit',
34
+ 'rolcreaterole': 'rolcreaterole',
35
+ 'rolcreatedb': 'rolcreatedb',
36
+ 'rolcanlogin': 'rolcanlogin',
37
+ 'rolconnlimit': 'rolconnlimit',
38
+ 'rolreplication': 'rolreplication',
39
+ 'rolbypassrls': 'rolbypassrls',
40
+ 'rolpassworddeadline': 'rolpassworddeadline'
41
+ }
42
+
43
+ def __init__(self, rolsuper=None, rolinherit=None, rolcreaterole=None, rolcreatedb=None, rolcanlogin=None, rolconnlimit=None, rolreplication=None, rolbypassrls=None, rolpassworddeadline=None):
44
+ """GaussDBListDatabaseRolesPriv
45
+
46
+ The model defined in huaweicloud sdk
47
+
48
+ :param rolsuper: 用户/角色是否具有管理员权限。
49
+ :type rolsuper: bool
50
+ :param rolinherit: 用户/角色是否自动继承其所属角色的权限。
51
+ :type rolinherit: bool
52
+ :param rolcreaterole: 用户/角色是否支持创建其他子用户。
53
+ :type rolcreaterole: bool
54
+ :param rolcreatedb: 用户/角色是否可以创建数据库。
55
+ :type rolcreatedb: bool
56
+ :param rolcanlogin: 用户/角色是否可以登录数据库。
57
+ :type rolcanlogin: bool
58
+ :param rolconnlimit: 用户/角色连接实例的最大并发连接数。-1表示没有限制。
59
+ :type rolconnlimit: int
60
+ :param rolreplication: 用户/角色是否属于复制角色。
61
+ :type rolreplication: bool
62
+ :param rolbypassrls: 用户/角色是否绕过每个行级安全策略。
63
+ :type rolbypassrls: bool
64
+ :param rolpassworddeadline: 用户/角色密码过期时间。
65
+ :type rolpassworddeadline: str
66
+ """
67
+
68
+
69
+
70
+ self._rolsuper = None
71
+ self._rolinherit = None
72
+ self._rolcreaterole = None
73
+ self._rolcreatedb = None
74
+ self._rolcanlogin = None
75
+ self._rolconnlimit = None
76
+ self._rolreplication = None
77
+ self._rolbypassrls = None
78
+ self._rolpassworddeadline = None
79
+ self.discriminator = None
80
+
81
+ if rolsuper is not None:
82
+ self.rolsuper = rolsuper
83
+ if rolinherit is not None:
84
+ self.rolinherit = rolinherit
85
+ if rolcreaterole is not None:
86
+ self.rolcreaterole = rolcreaterole
87
+ if rolcreatedb is not None:
88
+ self.rolcreatedb = rolcreatedb
89
+ if rolcanlogin is not None:
90
+ self.rolcanlogin = rolcanlogin
91
+ if rolconnlimit is not None:
92
+ self.rolconnlimit = rolconnlimit
93
+ if rolreplication is not None:
94
+ self.rolreplication = rolreplication
95
+ if rolbypassrls is not None:
96
+ self.rolbypassrls = rolbypassrls
97
+ if rolpassworddeadline is not None:
98
+ self.rolpassworddeadline = rolpassworddeadline
99
+
100
+ @property
101
+ def rolsuper(self):
102
+ """Gets the rolsuper of this GaussDBListDatabaseRolesPriv.
103
+
104
+ 用户/角色是否具有管理员权限。
105
+
106
+ :return: The rolsuper of this GaussDBListDatabaseRolesPriv.
107
+ :rtype: bool
108
+ """
109
+ return self._rolsuper
110
+
111
+ @rolsuper.setter
112
+ def rolsuper(self, rolsuper):
113
+ """Sets the rolsuper of this GaussDBListDatabaseRolesPriv.
114
+
115
+ 用户/角色是否具有管理员权限。
116
+
117
+ :param rolsuper: The rolsuper of this GaussDBListDatabaseRolesPriv.
118
+ :type rolsuper: bool
119
+ """
120
+ self._rolsuper = rolsuper
121
+
122
+ @property
123
+ def rolinherit(self):
124
+ """Gets the rolinherit of this GaussDBListDatabaseRolesPriv.
125
+
126
+ 用户/角色是否自动继承其所属角色的权限。
127
+
128
+ :return: The rolinherit of this GaussDBListDatabaseRolesPriv.
129
+ :rtype: bool
130
+ """
131
+ return self._rolinherit
132
+
133
+ @rolinherit.setter
134
+ def rolinherit(self, rolinherit):
135
+ """Sets the rolinherit of this GaussDBListDatabaseRolesPriv.
136
+
137
+ 用户/角色是否自动继承其所属角色的权限。
138
+
139
+ :param rolinherit: The rolinherit of this GaussDBListDatabaseRolesPriv.
140
+ :type rolinherit: bool
141
+ """
142
+ self._rolinherit = rolinherit
143
+
144
+ @property
145
+ def rolcreaterole(self):
146
+ """Gets the rolcreaterole of this GaussDBListDatabaseRolesPriv.
147
+
148
+ 用户/角色是否支持创建其他子用户。
149
+
150
+ :return: The rolcreaterole of this GaussDBListDatabaseRolesPriv.
151
+ :rtype: bool
152
+ """
153
+ return self._rolcreaterole
154
+
155
+ @rolcreaterole.setter
156
+ def rolcreaterole(self, rolcreaterole):
157
+ """Sets the rolcreaterole of this GaussDBListDatabaseRolesPriv.
158
+
159
+ 用户/角色是否支持创建其他子用户。
160
+
161
+ :param rolcreaterole: The rolcreaterole of this GaussDBListDatabaseRolesPriv.
162
+ :type rolcreaterole: bool
163
+ """
164
+ self._rolcreaterole = rolcreaterole
165
+
166
+ @property
167
+ def rolcreatedb(self):
168
+ """Gets the rolcreatedb of this GaussDBListDatabaseRolesPriv.
169
+
170
+ 用户/角色是否可以创建数据库。
171
+
172
+ :return: The rolcreatedb of this GaussDBListDatabaseRolesPriv.
173
+ :rtype: bool
174
+ """
175
+ return self._rolcreatedb
176
+
177
+ @rolcreatedb.setter
178
+ def rolcreatedb(self, rolcreatedb):
179
+ """Sets the rolcreatedb of this GaussDBListDatabaseRolesPriv.
180
+
181
+ 用户/角色是否可以创建数据库。
182
+
183
+ :param rolcreatedb: The rolcreatedb of this GaussDBListDatabaseRolesPriv.
184
+ :type rolcreatedb: bool
185
+ """
186
+ self._rolcreatedb = rolcreatedb
187
+
188
+ @property
189
+ def rolcanlogin(self):
190
+ """Gets the rolcanlogin of this GaussDBListDatabaseRolesPriv.
191
+
192
+ 用户/角色是否可以登录数据库。
193
+
194
+ :return: The rolcanlogin of this GaussDBListDatabaseRolesPriv.
195
+ :rtype: bool
196
+ """
197
+ return self._rolcanlogin
198
+
199
+ @rolcanlogin.setter
200
+ def rolcanlogin(self, rolcanlogin):
201
+ """Sets the rolcanlogin of this GaussDBListDatabaseRolesPriv.
202
+
203
+ 用户/角色是否可以登录数据库。
204
+
205
+ :param rolcanlogin: The rolcanlogin of this GaussDBListDatabaseRolesPriv.
206
+ :type rolcanlogin: bool
207
+ """
208
+ self._rolcanlogin = rolcanlogin
209
+
210
+ @property
211
+ def rolconnlimit(self):
212
+ """Gets the rolconnlimit of this GaussDBListDatabaseRolesPriv.
213
+
214
+ 用户/角色连接实例的最大并发连接数。-1表示没有限制。
215
+
216
+ :return: The rolconnlimit of this GaussDBListDatabaseRolesPriv.
217
+ :rtype: int
218
+ """
219
+ return self._rolconnlimit
220
+
221
+ @rolconnlimit.setter
222
+ def rolconnlimit(self, rolconnlimit):
223
+ """Sets the rolconnlimit of this GaussDBListDatabaseRolesPriv.
224
+
225
+ 用户/角色连接实例的最大并发连接数。-1表示没有限制。
226
+
227
+ :param rolconnlimit: The rolconnlimit of this GaussDBListDatabaseRolesPriv.
228
+ :type rolconnlimit: int
229
+ """
230
+ self._rolconnlimit = rolconnlimit
231
+
232
+ @property
233
+ def rolreplication(self):
234
+ """Gets the rolreplication of this GaussDBListDatabaseRolesPriv.
235
+
236
+ 用户/角色是否属于复制角色。
237
+
238
+ :return: The rolreplication of this GaussDBListDatabaseRolesPriv.
239
+ :rtype: bool
240
+ """
241
+ return self._rolreplication
242
+
243
+ @rolreplication.setter
244
+ def rolreplication(self, rolreplication):
245
+ """Sets the rolreplication of this GaussDBListDatabaseRolesPriv.
246
+
247
+ 用户/角色是否属于复制角色。
248
+
249
+ :param rolreplication: The rolreplication of this GaussDBListDatabaseRolesPriv.
250
+ :type rolreplication: bool
251
+ """
252
+ self._rolreplication = rolreplication
253
+
254
+ @property
255
+ def rolbypassrls(self):
256
+ """Gets the rolbypassrls of this GaussDBListDatabaseRolesPriv.
257
+
258
+ 用户/角色是否绕过每个行级安全策略。
259
+
260
+ :return: The rolbypassrls of this GaussDBListDatabaseRolesPriv.
261
+ :rtype: bool
262
+ """
263
+ return self._rolbypassrls
264
+
265
+ @rolbypassrls.setter
266
+ def rolbypassrls(self, rolbypassrls):
267
+ """Sets the rolbypassrls of this GaussDBListDatabaseRolesPriv.
268
+
269
+ 用户/角色是否绕过每个行级安全策略。
270
+
271
+ :param rolbypassrls: The rolbypassrls of this GaussDBListDatabaseRolesPriv.
272
+ :type rolbypassrls: bool
273
+ """
274
+ self._rolbypassrls = rolbypassrls
275
+
276
+ @property
277
+ def rolpassworddeadline(self):
278
+ """Gets the rolpassworddeadline of this GaussDBListDatabaseRolesPriv.
279
+
280
+ 用户/角色密码过期时间。
281
+
282
+ :return: The rolpassworddeadline of this GaussDBListDatabaseRolesPriv.
283
+ :rtype: str
284
+ """
285
+ return self._rolpassworddeadline
286
+
287
+ @rolpassworddeadline.setter
288
+ def rolpassworddeadline(self, rolpassworddeadline):
289
+ """Sets the rolpassworddeadline of this GaussDBListDatabaseRolesPriv.
290
+
291
+ 用户/角色密码过期时间。
292
+
293
+ :param rolpassworddeadline: The rolpassworddeadline of this GaussDBListDatabaseRolesPriv.
294
+ :type rolpassworddeadline: str
295
+ """
296
+ self._rolpassworddeadline = rolpassworddeadline
297
+
298
+ def to_dict(self):
299
+ """Returns the model properties as a dict"""
300
+ result = {}
301
+
302
+ for attr, _ in six.iteritems(self.openapi_types):
303
+ value = getattr(self, attr)
304
+ if isinstance(value, list):
305
+ result[attr] = list(map(
306
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
307
+ value
308
+ ))
309
+ elif hasattr(value, "to_dict"):
310
+ result[attr] = value.to_dict()
311
+ elif isinstance(value, dict):
312
+ result[attr] = dict(map(
313
+ lambda item: (item[0], item[1].to_dict())
314
+ if hasattr(item[1], "to_dict") else item,
315
+ value.items()
316
+ ))
317
+ else:
318
+ if attr in self.sensitive_list:
319
+ result[attr] = "****"
320
+ else:
321
+ result[attr] = value
322
+
323
+ return result
324
+
325
+ def to_str(self):
326
+ """Returns the string representation of the model"""
327
+ import simplejson as json
328
+ if six.PY2:
329
+ import sys
330
+ reload(sys)
331
+ sys.setdefaultencoding("utf-8")
332
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
333
+
334
+ def __repr__(self):
335
+ """For `print`"""
336
+ return self.to_str()
337
+
338
+ def __eq__(self, other):
339
+ """Returns true if both objects are equal"""
340
+ if not isinstance(other, GaussDBListDatabaseRolesPriv):
341
+ return False
342
+
343
+ return self.__dict__ == other.__dict__
344
+
345
+ def __ne__(self, other):
346
+ """Returns true if both objects are not equal"""
347
+ return not self == other
@@ -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 HotfixInfoResult:
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
+ """HotfixInfoResult
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 HotfixInfoResult.
68
+
69
+ 热补丁版本
70
+
71
+ :return: The version of this HotfixInfoResult.
72
+ :rtype: str
73
+ """
74
+ return self._version
75
+
76
+ @version.setter
77
+ def version(self, version):
78
+ """Sets the version of this HotfixInfoResult.
79
+
80
+ 热补丁版本
81
+
82
+ :param version: The version of this HotfixInfoResult.
83
+ :type version: str
84
+ """
85
+ self._version = version
86
+
87
+ @property
88
+ def common_patch(self):
89
+ """Gets the common_patch of this HotfixInfoResult.
90
+
91
+ 通用非通用信息,common=通用补丁,certain=定制补丁
92
+
93
+ :return: The common_patch of this HotfixInfoResult.
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 HotfixInfoResult.
101
+
102
+ 通用非通用信息,common=通用补丁,certain=定制补丁
103
+
104
+ :param common_patch: The common_patch of this HotfixInfoResult.
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 HotfixInfoResult.
112
+
113
+ 是否和备份相关
114
+
115
+ :return: The backup_sensitive of this HotfixInfoResult.
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 HotfixInfoResult.
123
+
124
+ 是否和备份相关
125
+
126
+ :param backup_sensitive: The backup_sensitive of this HotfixInfoResult.
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 HotfixInfoResult.
134
+
135
+ 补丁的描述信息
136
+
137
+ :return: The descripition of this HotfixInfoResult.
138
+ :rtype: str
139
+ """
140
+ return self._descripition
141
+
142
+ @descripition.setter
143
+ def descripition(self, descripition):
144
+ """Sets the descripition of this HotfixInfoResult.
145
+
146
+ 补丁的描述信息
147
+
148
+ :param descripition: The descripition of this HotfixInfoResult.
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, HotfixInfoResult):
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