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,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DeleteDatabaseSchemaRequestBody:
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
+ 'db_name': 'str',
21
+ 'schema': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'db_name': 'db_name',
26
+ 'schema': 'schema'
27
+ }
28
+
29
+ def __init__(self, db_name=None, schema=None):
30
+ """DeleteDatabaseSchemaRequestBody
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param db_name: 数据库名称。 使用已存在的数据库名称,且不能为模板库。 模板库包括postgres, template0 ,template1,templatea,template_pdb,templatem。
35
+ :type db_name: str
36
+ :param schema: SCHEMA名称。 SCHEMA名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和模板库和已存在的SCHEMA重名。 模板库包括postgres, template0 ,template1,templatea,template_pdb,templatem。 已存在的SCHEMA包括public,information_schema。
37
+ :type schema: str
38
+ """
39
+
40
+
41
+
42
+ self._db_name = None
43
+ self._schema = None
44
+ self.discriminator = None
45
+
46
+ self.db_name = db_name
47
+ self.schema = schema
48
+
49
+ @property
50
+ def db_name(self):
51
+ """Gets the db_name of this DeleteDatabaseSchemaRequestBody.
52
+
53
+ 数据库名称。 使用已存在的数据库名称,且不能为模板库。 模板库包括postgres, template0 ,template1,templatea,template_pdb,templatem。
54
+
55
+ :return: The db_name of this DeleteDatabaseSchemaRequestBody.
56
+ :rtype: str
57
+ """
58
+ return self._db_name
59
+
60
+ @db_name.setter
61
+ def db_name(self, db_name):
62
+ """Sets the db_name of this DeleteDatabaseSchemaRequestBody.
63
+
64
+ 数据库名称。 使用已存在的数据库名称,且不能为模板库。 模板库包括postgres, template0 ,template1,templatea,template_pdb,templatem。
65
+
66
+ :param db_name: The db_name of this DeleteDatabaseSchemaRequestBody.
67
+ :type db_name: str
68
+ """
69
+ self._db_name = db_name
70
+
71
+ @property
72
+ def schema(self):
73
+ """Gets the schema of this DeleteDatabaseSchemaRequestBody.
74
+
75
+ SCHEMA名称。 SCHEMA名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和模板库和已存在的SCHEMA重名。 模板库包括postgres, template0 ,template1,templatea,template_pdb,templatem。 已存在的SCHEMA包括public,information_schema。
76
+
77
+ :return: The schema of this DeleteDatabaseSchemaRequestBody.
78
+ :rtype: str
79
+ """
80
+ return self._schema
81
+
82
+ @schema.setter
83
+ def schema(self, schema):
84
+ """Sets the schema of this DeleteDatabaseSchemaRequestBody.
85
+
86
+ SCHEMA名称。 SCHEMA名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和模板库和已存在的SCHEMA重名。 模板库包括postgres, template0 ,template1,templatea,template_pdb,templatem。 已存在的SCHEMA包括public,information_schema。
87
+
88
+ :param schema: The schema of this DeleteDatabaseSchemaRequestBody.
89
+ :type schema: str
90
+ """
91
+ self._schema = schema
92
+
93
+ def to_dict(self):
94
+ """Returns the model properties as a dict"""
95
+ result = {}
96
+
97
+ for attr, _ in six.iteritems(self.openapi_types):
98
+ value = getattr(self, attr)
99
+ if isinstance(value, list):
100
+ result[attr] = list(map(
101
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
102
+ value
103
+ ))
104
+ elif hasattr(value, "to_dict"):
105
+ result[attr] = value.to_dict()
106
+ elif isinstance(value, dict):
107
+ result[attr] = dict(map(
108
+ lambda item: (item[0], item[1].to_dict())
109
+ if hasattr(item[1], "to_dict") else item,
110
+ value.items()
111
+ ))
112
+ else:
113
+ if attr in self.sensitive_list:
114
+ result[attr] = "****"
115
+ else:
116
+ result[attr] = value
117
+
118
+ return result
119
+
120
+ def to_str(self):
121
+ """Returns the string representation of the model"""
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
128
+
129
+ def __repr__(self):
130
+ """For `print`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, DeleteDatabaseSchemaRequestBody):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ return not self == other
@@ -0,0 +1,85 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class DeleteDatabaseSchemaResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ }
22
+
23
+ attribute_map = {
24
+ }
25
+
26
+ def __init__(self):
27
+ """DeleteDatabaseSchemaResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(DeleteDatabaseSchemaResponse, self).__init__()
34
+ self.discriminator = None
35
+
36
+ def to_dict(self):
37
+ """Returns the model properties as a dict"""
38
+ result = {}
39
+
40
+ for attr, _ in six.iteritems(self.openapi_types):
41
+ value = getattr(self, attr)
42
+ if isinstance(value, list):
43
+ result[attr] = list(map(
44
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
45
+ value
46
+ ))
47
+ elif hasattr(value, "to_dict"):
48
+ result[attr] = value.to_dict()
49
+ elif isinstance(value, dict):
50
+ result[attr] = dict(map(
51
+ lambda item: (item[0], item[1].to_dict())
52
+ if hasattr(item[1], "to_dict") else item,
53
+ value.items()
54
+ ))
55
+ else:
56
+ if attr in self.sensitive_list:
57
+ result[attr] = "****"
58
+ else:
59
+ result[attr] = value
60
+
61
+ return result
62
+
63
+ def to_str(self):
64
+ """Returns the string representation of the model"""
65
+ import simplejson as json
66
+ if six.PY2:
67
+ import sys
68
+ reload(sys)
69
+ sys.setdefaultencoding("utf-8")
70
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
+
72
+ def __repr__(self):
73
+ """For `print`"""
74
+ return self.to_str()
75
+
76
+ def __eq__(self, other):
77
+ """Returns true if both objects are equal"""
78
+ if not isinstance(other, DeleteDatabaseSchemaResponse):
79
+ return False
80
+
81
+ return self.__dict__ == other.__dict__
82
+
83
+ def __ne__(self, other):
84
+ """Returns true if both objects are not equal"""
85
+ return not self == other
@@ -0,0 +1,201 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class GaussDBListDatabaseRoles:
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
+ 'name': 'str',
21
+ 'memberof': 'str',
22
+ 'lock_status': 'bool',
23
+ 'attribute': 'object'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'name': 'name',
28
+ 'memberof': 'memberof',
29
+ 'lock_status': 'lock_status',
30
+ 'attribute': 'attribute'
31
+ }
32
+
33
+ def __init__(self, name=None, memberof=None, lock_status=None, attribute=None):
34
+ """GaussDBListDatabaseRoles
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param name: 数据库用户/角色名。
39
+ :type name: str
40
+ :param memberof: 用户/角色的默认权限。
41
+ :type memberof: str
42
+ :param lock_status: 用户/角色是否被锁。
43
+ :type lock_status: bool
44
+ :param attribute: 用户/角色的权限属性。
45
+ :type attribute: object
46
+ """
47
+
48
+
49
+
50
+ self._name = None
51
+ self._memberof = None
52
+ self._lock_status = None
53
+ self._attribute = None
54
+ self.discriminator = None
55
+
56
+ self.name = name
57
+ if memberof is not None:
58
+ self.memberof = memberof
59
+ if lock_status is not None:
60
+ self.lock_status = lock_status
61
+ if attribute is not None:
62
+ self.attribute = attribute
63
+
64
+ @property
65
+ def name(self):
66
+ """Gets the name of this GaussDBListDatabaseRoles.
67
+
68
+ 数据库用户/角色名。
69
+
70
+ :return: The name of this GaussDBListDatabaseRoles.
71
+ :rtype: str
72
+ """
73
+ return self._name
74
+
75
+ @name.setter
76
+ def name(self, name):
77
+ """Sets the name of this GaussDBListDatabaseRoles.
78
+
79
+ 数据库用户/角色名。
80
+
81
+ :param name: The name of this GaussDBListDatabaseRoles.
82
+ :type name: str
83
+ """
84
+ self._name = name
85
+
86
+ @property
87
+ def memberof(self):
88
+ """Gets the memberof of this GaussDBListDatabaseRoles.
89
+
90
+ 用户/角色的默认权限。
91
+
92
+ :return: The memberof of this GaussDBListDatabaseRoles.
93
+ :rtype: str
94
+ """
95
+ return self._memberof
96
+
97
+ @memberof.setter
98
+ def memberof(self, memberof):
99
+ """Sets the memberof of this GaussDBListDatabaseRoles.
100
+
101
+ 用户/角色的默认权限。
102
+
103
+ :param memberof: The memberof of this GaussDBListDatabaseRoles.
104
+ :type memberof: str
105
+ """
106
+ self._memberof = memberof
107
+
108
+ @property
109
+ def lock_status(self):
110
+ """Gets the lock_status of this GaussDBListDatabaseRoles.
111
+
112
+ 用户/角色是否被锁。
113
+
114
+ :return: The lock_status of this GaussDBListDatabaseRoles.
115
+ :rtype: bool
116
+ """
117
+ return self._lock_status
118
+
119
+ @lock_status.setter
120
+ def lock_status(self, lock_status):
121
+ """Sets the lock_status of this GaussDBListDatabaseRoles.
122
+
123
+ 用户/角色是否被锁。
124
+
125
+ :param lock_status: The lock_status of this GaussDBListDatabaseRoles.
126
+ :type lock_status: bool
127
+ """
128
+ self._lock_status = lock_status
129
+
130
+ @property
131
+ def attribute(self):
132
+ """Gets the attribute of this GaussDBListDatabaseRoles.
133
+
134
+ 用户/角色的权限属性。
135
+
136
+ :return: The attribute of this GaussDBListDatabaseRoles.
137
+ :rtype: object
138
+ """
139
+ return self._attribute
140
+
141
+ @attribute.setter
142
+ def attribute(self, attribute):
143
+ """Sets the attribute of this GaussDBListDatabaseRoles.
144
+
145
+ 用户/角色的权限属性。
146
+
147
+ :param attribute: The attribute of this GaussDBListDatabaseRoles.
148
+ :type attribute: object
149
+ """
150
+ self._attribute = attribute
151
+
152
+ def to_dict(self):
153
+ """Returns the model properties as a dict"""
154
+ result = {}
155
+
156
+ for attr, _ in six.iteritems(self.openapi_types):
157
+ value = getattr(self, attr)
158
+ if isinstance(value, list):
159
+ result[attr] = list(map(
160
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
161
+ value
162
+ ))
163
+ elif hasattr(value, "to_dict"):
164
+ result[attr] = value.to_dict()
165
+ elif isinstance(value, dict):
166
+ result[attr] = dict(map(
167
+ lambda item: (item[0], item[1].to_dict())
168
+ if hasattr(item[1], "to_dict") else item,
169
+ value.items()
170
+ ))
171
+ else:
172
+ if attr in self.sensitive_list:
173
+ result[attr] = "****"
174
+ else:
175
+ result[attr] = value
176
+
177
+ return result
178
+
179
+ def to_str(self):
180
+ """Returns the string representation of the model"""
181
+ import simplejson as json
182
+ if six.PY2:
183
+ import sys
184
+ reload(sys)
185
+ sys.setdefaultencoding("utf-8")
186
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
187
+
188
+ def __repr__(self):
189
+ """For `print`"""
190
+ return self.to_str()
191
+
192
+ def __eq__(self, other):
193
+ """Returns true if both objects are equal"""
194
+ if not isinstance(other, GaussDBListDatabaseRoles):
195
+ return False
196
+
197
+ return self.__dict__ == other.__dict__
198
+
199
+ def __ne__(self, other):
200
+ """Returns true if both objects are not equal"""
201
+ 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