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,140 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BatchShowUpgradeCandidateVersionsRequest:
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': 'UpgradeInstancesRequestBody'
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
+ """BatchShowUpgradeCandidateVersionsRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param x_language: 语言[zh-cn, en-us]。
35
+ :type x_language: str
36
+ :param body: Body of the BatchShowUpgradeCandidateVersionsRequest
37
+ :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeInstancesRequestBody`
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 BatchShowUpgradeCandidateVersionsRequest.
54
+
55
+ 语言[zh-cn, en-us]。
56
+
57
+ :return: The x_language of this BatchShowUpgradeCandidateVersionsRequest.
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 BatchShowUpgradeCandidateVersionsRequest.
65
+
66
+ 语言[zh-cn, en-us]。
67
+
68
+ :param x_language: The x_language of this BatchShowUpgradeCandidateVersionsRequest.
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 BatchShowUpgradeCandidateVersionsRequest.
76
+
77
+ :return: The body of this BatchShowUpgradeCandidateVersionsRequest.
78
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeInstancesRequestBody`
79
+ """
80
+ return self._body
81
+
82
+ @body.setter
83
+ def body(self, body):
84
+ """Sets the body of this BatchShowUpgradeCandidateVersionsRequest.
85
+
86
+ :param body: The body of this BatchShowUpgradeCandidateVersionsRequest.
87
+ :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeInstancesRequestBody`
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, BatchShowUpgradeCandidateVersionsRequest):
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
@@ -0,0 +1,232 @@
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 BatchShowUpgradeCandidateVersionsResponse(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
+ 'upgrade_type_list': 'list[UpgradeTypeInfo]',
22
+ 'target_version': 'str',
23
+ 'upgrade_candidate_versions': 'list[str]',
24
+ 'hotfix_upgrade_infos': 'list[HotfixInfoResult]',
25
+ 'hotfix_rollback_infos': 'list[HotfixInfoResult]'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'upgrade_type_list': 'upgrade_type_list',
30
+ 'target_version': 'target_version',
31
+ 'upgrade_candidate_versions': 'upgrade_candidate_versions',
32
+ 'hotfix_upgrade_infos': 'hotfix_upgrade_infos',
33
+ 'hotfix_rollback_infos': 'hotfix_rollback_infos'
34
+ }
35
+
36
+ def __init__(self, upgrade_type_list=None, target_version=None, upgrade_candidate_versions=None, hotfix_upgrade_infos=None, hotfix_rollback_infos=None):
37
+ """BatchShowUpgradeCandidateVersionsResponse
38
+
39
+ The model defined in huaweicloud sdk
40
+
41
+ :param upgrade_type_list: 升级类型信息列表。
42
+ :type upgrade_type_list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeTypeInfo`]
43
+ :param target_version: 升级目标版本,没有在滚动升级中返回null。
44
+ :type target_version: str
45
+ :param upgrade_candidate_versions: 可以升级的版本,包括大小版本。
46
+ :type upgrade_candidate_versions: list[str]
47
+ :param hotfix_upgrade_infos: 可以升级的热补丁信息。
48
+ :type hotfix_upgrade_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixInfoResult`]
49
+ :param hotfix_rollback_infos: 可以回滚的热补丁信息。
50
+ :type hotfix_rollback_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixInfoResult`]
51
+ """
52
+
53
+ super(BatchShowUpgradeCandidateVersionsResponse, self).__init__()
54
+
55
+ self._upgrade_type_list = None
56
+ self._target_version = None
57
+ self._upgrade_candidate_versions = None
58
+ self._hotfix_upgrade_infos = None
59
+ self._hotfix_rollback_infos = None
60
+ self.discriminator = None
61
+
62
+ if upgrade_type_list is not None:
63
+ self.upgrade_type_list = upgrade_type_list
64
+ if target_version is not None:
65
+ self.target_version = target_version
66
+ if upgrade_candidate_versions is not None:
67
+ self.upgrade_candidate_versions = upgrade_candidate_versions
68
+ if hotfix_upgrade_infos is not None:
69
+ self.hotfix_upgrade_infos = hotfix_upgrade_infos
70
+ if hotfix_rollback_infos is not None:
71
+ self.hotfix_rollback_infos = hotfix_rollback_infos
72
+
73
+ @property
74
+ def upgrade_type_list(self):
75
+ """Gets the upgrade_type_list of this BatchShowUpgradeCandidateVersionsResponse.
76
+
77
+ 升级类型信息列表。
78
+
79
+ :return: The upgrade_type_list of this BatchShowUpgradeCandidateVersionsResponse.
80
+ :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeTypeInfo`]
81
+ """
82
+ return self._upgrade_type_list
83
+
84
+ @upgrade_type_list.setter
85
+ def upgrade_type_list(self, upgrade_type_list):
86
+ """Sets the upgrade_type_list of this BatchShowUpgradeCandidateVersionsResponse.
87
+
88
+ 升级类型信息列表。
89
+
90
+ :param upgrade_type_list: The upgrade_type_list of this BatchShowUpgradeCandidateVersionsResponse.
91
+ :type upgrade_type_list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeTypeInfo`]
92
+ """
93
+ self._upgrade_type_list = upgrade_type_list
94
+
95
+ @property
96
+ def target_version(self):
97
+ """Gets the target_version of this BatchShowUpgradeCandidateVersionsResponse.
98
+
99
+ 升级目标版本,没有在滚动升级中返回null。
100
+
101
+ :return: The target_version of this BatchShowUpgradeCandidateVersionsResponse.
102
+ :rtype: str
103
+ """
104
+ return self._target_version
105
+
106
+ @target_version.setter
107
+ def target_version(self, target_version):
108
+ """Sets the target_version of this BatchShowUpgradeCandidateVersionsResponse.
109
+
110
+ 升级目标版本,没有在滚动升级中返回null。
111
+
112
+ :param target_version: The target_version of this BatchShowUpgradeCandidateVersionsResponse.
113
+ :type target_version: str
114
+ """
115
+ self._target_version = target_version
116
+
117
+ @property
118
+ def upgrade_candidate_versions(self):
119
+ """Gets the upgrade_candidate_versions of this BatchShowUpgradeCandidateVersionsResponse.
120
+
121
+ 可以升级的版本,包括大小版本。
122
+
123
+ :return: The upgrade_candidate_versions of this BatchShowUpgradeCandidateVersionsResponse.
124
+ :rtype: list[str]
125
+ """
126
+ return self._upgrade_candidate_versions
127
+
128
+ @upgrade_candidate_versions.setter
129
+ def upgrade_candidate_versions(self, upgrade_candidate_versions):
130
+ """Sets the upgrade_candidate_versions of this BatchShowUpgradeCandidateVersionsResponse.
131
+
132
+ 可以升级的版本,包括大小版本。
133
+
134
+ :param upgrade_candidate_versions: The upgrade_candidate_versions of this BatchShowUpgradeCandidateVersionsResponse.
135
+ :type upgrade_candidate_versions: list[str]
136
+ """
137
+ self._upgrade_candidate_versions = upgrade_candidate_versions
138
+
139
+ @property
140
+ def hotfix_upgrade_infos(self):
141
+ """Gets the hotfix_upgrade_infos of this BatchShowUpgradeCandidateVersionsResponse.
142
+
143
+ 可以升级的热补丁信息。
144
+
145
+ :return: The hotfix_upgrade_infos of this BatchShowUpgradeCandidateVersionsResponse.
146
+ :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixInfoResult`]
147
+ """
148
+ return self._hotfix_upgrade_infos
149
+
150
+ @hotfix_upgrade_infos.setter
151
+ def hotfix_upgrade_infos(self, hotfix_upgrade_infos):
152
+ """Sets the hotfix_upgrade_infos of this BatchShowUpgradeCandidateVersionsResponse.
153
+
154
+ 可以升级的热补丁信息。
155
+
156
+ :param hotfix_upgrade_infos: The hotfix_upgrade_infos of this BatchShowUpgradeCandidateVersionsResponse.
157
+ :type hotfix_upgrade_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixInfoResult`]
158
+ """
159
+ self._hotfix_upgrade_infos = hotfix_upgrade_infos
160
+
161
+ @property
162
+ def hotfix_rollback_infos(self):
163
+ """Gets the hotfix_rollback_infos of this BatchShowUpgradeCandidateVersionsResponse.
164
+
165
+ 可以回滚的热补丁信息。
166
+
167
+ :return: The hotfix_rollback_infos of this BatchShowUpgradeCandidateVersionsResponse.
168
+ :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixInfoResult`]
169
+ """
170
+ return self._hotfix_rollback_infos
171
+
172
+ @hotfix_rollback_infos.setter
173
+ def hotfix_rollback_infos(self, hotfix_rollback_infos):
174
+ """Sets the hotfix_rollback_infos of this BatchShowUpgradeCandidateVersionsResponse.
175
+
176
+ 可以回滚的热补丁信息。
177
+
178
+ :param hotfix_rollback_infos: The hotfix_rollback_infos of this BatchShowUpgradeCandidateVersionsResponse.
179
+ :type hotfix_rollback_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixInfoResult`]
180
+ """
181
+ self._hotfix_rollback_infos = hotfix_rollback_infos
182
+
183
+ def to_dict(self):
184
+ """Returns the model properties as a dict"""
185
+ result = {}
186
+
187
+ for attr, _ in six.iteritems(self.openapi_types):
188
+ value = getattr(self, attr)
189
+ if isinstance(value, list):
190
+ result[attr] = list(map(
191
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
192
+ value
193
+ ))
194
+ elif hasattr(value, "to_dict"):
195
+ result[attr] = value.to_dict()
196
+ elif isinstance(value, dict):
197
+ result[attr] = dict(map(
198
+ lambda item: (item[0], item[1].to_dict())
199
+ if hasattr(item[1], "to_dict") else item,
200
+ value.items()
201
+ ))
202
+ else:
203
+ if attr in self.sensitive_list:
204
+ result[attr] = "****"
205
+ else:
206
+ result[attr] = value
207
+
208
+ return result
209
+
210
+ def to_str(self):
211
+ """Returns the string representation of the model"""
212
+ import simplejson as json
213
+ if six.PY2:
214
+ import sys
215
+ reload(sys)
216
+ sys.setdefaultencoding("utf-8")
217
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
218
+
219
+ def __repr__(self):
220
+ """For `print`"""
221
+ return self.to_str()
222
+
223
+ def __eq__(self, other):
224
+ """Returns true if both objects are equal"""
225
+ if not isinstance(other, BatchShowUpgradeCandidateVersionsResponse):
226
+ return False
227
+
228
+ return self.__dict__ == other.__dict__
229
+
230
+ def __ne__(self, other):
231
+ """Returns true if both objects are not equal"""
232
+ 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 CanBeRollbackedHotfixDetail:
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
+ """CanBeRollbackedHotfixDetail
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 CanBeRollbackedHotfixDetail.
68
+
69
+ 热补丁版本。
70
+
71
+ :return: The version of this CanBeRollbackedHotfixDetail.
72
+ :rtype: str
73
+ """
74
+ return self._version
75
+
76
+ @version.setter
77
+ def version(self, version):
78
+ """Sets the version of this CanBeRollbackedHotfixDetail.
79
+
80
+ 热补丁版本。
81
+
82
+ :param version: The version of this CanBeRollbackedHotfixDetail.
83
+ :type version: str
84
+ """
85
+ self._version = version
86
+
87
+ @property
88
+ def common_patch(self):
89
+ """Gets the common_patch of this CanBeRollbackedHotfixDetail.
90
+
91
+ 通用/非通用补丁信息。 枚举值: \"common\": 通用补丁。 \"certain\": 定制补丁。
92
+
93
+ :return: The common_patch of this CanBeRollbackedHotfixDetail.
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 CanBeRollbackedHotfixDetail.
101
+
102
+ 通用/非通用补丁信息。 枚举值: \"common\": 通用补丁。 \"certain\": 定制补丁。
103
+
104
+ :param common_patch: The common_patch of this CanBeRollbackedHotfixDetail.
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 CanBeRollbackedHotfixDetail.
112
+
113
+ 是否和备份相关。
114
+
115
+ :return: The backup_sensitive of this CanBeRollbackedHotfixDetail.
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 CanBeRollbackedHotfixDetail.
123
+
124
+ 是否和备份相关。
125
+
126
+ :param backup_sensitive: The backup_sensitive of this CanBeRollbackedHotfixDetail.
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 CanBeRollbackedHotfixDetail.
134
+
135
+ 补丁的描述信息。
136
+
137
+ :return: The descripition of this CanBeRollbackedHotfixDetail.
138
+ :rtype: str
139
+ """
140
+ return self._descripition
141
+
142
+ @descripition.setter
143
+ def descripition(self, descripition):
144
+ """Sets the descripition of this CanBeRollbackedHotfixDetail.
145
+
146
+ 补丁的描述信息。
147
+
148
+ :param descripition: The descripition of this CanBeRollbackedHotfixDetail.
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, CanBeRollbackedHotfixDetail):
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