huaweicloudsdkgaussdbforopengauss 3.1.102__py2.py3-none-any.whl → 3.1.103__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.
- huaweicloudsdkgaussdbforopengauss/v3/__init__.py +19 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +367 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +367 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +19 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/backup_policy_info.py +314 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/confirm_restored_data_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/confirm_restored_data_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_upgrade_instances_version_request.py +201 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_info.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_version_info.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_datastore.py +258 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_details_request.py +405 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_details_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instances_result.py +957 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/my_sql_compatibility_result.py +115 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_instance_request.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_instance_request_body.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/set_new_backup_policy_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/set_new_backup_policy_request_body.py +110 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/set_new_backup_policy_response.py +85 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_batch_upgrade_candidate_versions_request.py +140 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_batch_upgrade_candidate_versions_response.py +203 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_request_body.py +115 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_version_request.py +140 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_version_response.py +232 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.102.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.103.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.102.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.103.dist-info}/RECORD +30 -11
- {huaweicloudsdkgaussdbforopengauss-3.1.102.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.103.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.102.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.103.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.102.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.103.dist-info}/top_level.txt +0 -0
@@ -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 GaussDBUpgradeInstancesVersionRequest:
|
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
|
+
'instance_ids': 'list[str]',
|
21
|
+
'upgrade_type': 'str',
|
22
|
+
'upgrade_action': 'str',
|
23
|
+
'target_version': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'instance_ids': 'instance_ids',
|
28
|
+
'upgrade_type': 'upgrade_type',
|
29
|
+
'upgrade_action': 'upgrade_action',
|
30
|
+
'target_version': 'target_version'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, instance_ids=None, upgrade_type=None, upgrade_action=None, target_version=None):
|
34
|
+
"""GaussDBUpgradeInstancesVersionRequest
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param instance_ids: 批量实例ID
|
39
|
+
:type instance_ids: list[str]
|
40
|
+
:param upgrade_type: 实例升级类型,包括就地升级,灰度升级、热补丁升级三种
|
41
|
+
:type upgrade_type: str
|
42
|
+
:param upgrade_action: 实例升级操作,就地升级无需传值。灰度升级包括升级自动提交,升级待观察,提交升级,升级回退四种。
|
43
|
+
:type upgrade_action: str
|
44
|
+
:param target_version: 批量实例升级目标版本,非必填。如果未传值灰度升级和就地升级默认升级到当前实例的优选版本,热补丁升级无需传该值,默认升级实例所有可升级热补丁。
|
45
|
+
:type target_version: str
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._instance_ids = None
|
51
|
+
self._upgrade_type = None
|
52
|
+
self._upgrade_action = None
|
53
|
+
self._target_version = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if instance_ids is not None:
|
57
|
+
self.instance_ids = instance_ids
|
58
|
+
self.upgrade_type = upgrade_type
|
59
|
+
if upgrade_action is not None:
|
60
|
+
self.upgrade_action = upgrade_action
|
61
|
+
if target_version is not None:
|
62
|
+
self.target_version = target_version
|
63
|
+
|
64
|
+
@property
|
65
|
+
def instance_ids(self):
|
66
|
+
"""Gets the instance_ids of this GaussDBUpgradeInstancesVersionRequest.
|
67
|
+
|
68
|
+
批量实例ID
|
69
|
+
|
70
|
+
:return: The instance_ids of this GaussDBUpgradeInstancesVersionRequest.
|
71
|
+
:rtype: list[str]
|
72
|
+
"""
|
73
|
+
return self._instance_ids
|
74
|
+
|
75
|
+
@instance_ids.setter
|
76
|
+
def instance_ids(self, instance_ids):
|
77
|
+
"""Sets the instance_ids of this GaussDBUpgradeInstancesVersionRequest.
|
78
|
+
|
79
|
+
批量实例ID
|
80
|
+
|
81
|
+
:param instance_ids: The instance_ids of this GaussDBUpgradeInstancesVersionRequest.
|
82
|
+
:type instance_ids: list[str]
|
83
|
+
"""
|
84
|
+
self._instance_ids = instance_ids
|
85
|
+
|
86
|
+
@property
|
87
|
+
def upgrade_type(self):
|
88
|
+
"""Gets the upgrade_type of this GaussDBUpgradeInstancesVersionRequest.
|
89
|
+
|
90
|
+
实例升级类型,包括就地升级,灰度升级、热补丁升级三种
|
91
|
+
|
92
|
+
:return: The upgrade_type of this GaussDBUpgradeInstancesVersionRequest.
|
93
|
+
:rtype: str
|
94
|
+
"""
|
95
|
+
return self._upgrade_type
|
96
|
+
|
97
|
+
@upgrade_type.setter
|
98
|
+
def upgrade_type(self, upgrade_type):
|
99
|
+
"""Sets the upgrade_type of this GaussDBUpgradeInstancesVersionRequest.
|
100
|
+
|
101
|
+
实例升级类型,包括就地升级,灰度升级、热补丁升级三种
|
102
|
+
|
103
|
+
:param upgrade_type: The upgrade_type of this GaussDBUpgradeInstancesVersionRequest.
|
104
|
+
:type upgrade_type: str
|
105
|
+
"""
|
106
|
+
self._upgrade_type = upgrade_type
|
107
|
+
|
108
|
+
@property
|
109
|
+
def upgrade_action(self):
|
110
|
+
"""Gets the upgrade_action of this GaussDBUpgradeInstancesVersionRequest.
|
111
|
+
|
112
|
+
实例升级操作,就地升级无需传值。灰度升级包括升级自动提交,升级待观察,提交升级,升级回退四种。
|
113
|
+
|
114
|
+
:return: The upgrade_action of this GaussDBUpgradeInstancesVersionRequest.
|
115
|
+
:rtype: str
|
116
|
+
"""
|
117
|
+
return self._upgrade_action
|
118
|
+
|
119
|
+
@upgrade_action.setter
|
120
|
+
def upgrade_action(self, upgrade_action):
|
121
|
+
"""Sets the upgrade_action of this GaussDBUpgradeInstancesVersionRequest.
|
122
|
+
|
123
|
+
实例升级操作,就地升级无需传值。灰度升级包括升级自动提交,升级待观察,提交升级,升级回退四种。
|
124
|
+
|
125
|
+
:param upgrade_action: The upgrade_action of this GaussDBUpgradeInstancesVersionRequest.
|
126
|
+
:type upgrade_action: str
|
127
|
+
"""
|
128
|
+
self._upgrade_action = upgrade_action
|
129
|
+
|
130
|
+
@property
|
131
|
+
def target_version(self):
|
132
|
+
"""Gets the target_version of this GaussDBUpgradeInstancesVersionRequest.
|
133
|
+
|
134
|
+
批量实例升级目标版本,非必填。如果未传值灰度升级和就地升级默认升级到当前实例的优选版本,热补丁升级无需传该值,默认升级实例所有可升级热补丁。
|
135
|
+
|
136
|
+
:return: The target_version of this GaussDBUpgradeInstancesVersionRequest.
|
137
|
+
:rtype: str
|
138
|
+
"""
|
139
|
+
return self._target_version
|
140
|
+
|
141
|
+
@target_version.setter
|
142
|
+
def target_version(self, target_version):
|
143
|
+
"""Sets the target_version of this GaussDBUpgradeInstancesVersionRequest.
|
144
|
+
|
145
|
+
批量实例升级目标版本,非必填。如果未传值灰度升级和就地升级默认升级到当前实例的优选版本,热补丁升级无需传该值,默认升级实例所有可升级热补丁。
|
146
|
+
|
147
|
+
:param target_version: The target_version of this GaussDBUpgradeInstancesVersionRequest.
|
148
|
+
:type target_version: str
|
149
|
+
"""
|
150
|
+
self._target_version = target_version
|
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, GaussDBUpgradeInstancesVersionRequest):
|
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 HotfixInfo:
|
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
|
+
"""HotfixInfo
|
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 HotfixInfo.
|
68
|
+
|
69
|
+
热补丁版本
|
70
|
+
|
71
|
+
:return: The version of this HotfixInfo.
|
72
|
+
:rtype: str
|
73
|
+
"""
|
74
|
+
return self._version
|
75
|
+
|
76
|
+
@version.setter
|
77
|
+
def version(self, version):
|
78
|
+
"""Sets the version of this HotfixInfo.
|
79
|
+
|
80
|
+
热补丁版本
|
81
|
+
|
82
|
+
:param version: The version of this HotfixInfo.
|
83
|
+
:type version: str
|
84
|
+
"""
|
85
|
+
self._version = version
|
86
|
+
|
87
|
+
@property
|
88
|
+
def common_patch(self):
|
89
|
+
"""Gets the common_patch of this HotfixInfo.
|
90
|
+
|
91
|
+
通用非通用信息,common=通用补丁,certain=定制补丁
|
92
|
+
|
93
|
+
:return: The common_patch of this HotfixInfo.
|
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 HotfixInfo.
|
101
|
+
|
102
|
+
通用非通用信息,common=通用补丁,certain=定制补丁
|
103
|
+
|
104
|
+
:param common_patch: The common_patch of this HotfixInfo.
|
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 HotfixInfo.
|
112
|
+
|
113
|
+
是否和备份相关
|
114
|
+
|
115
|
+
:return: The backup_sensitive of this HotfixInfo.
|
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 HotfixInfo.
|
123
|
+
|
124
|
+
是否和备份相关
|
125
|
+
|
126
|
+
:param backup_sensitive: The backup_sensitive of this HotfixInfo.
|
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 HotfixInfo.
|
134
|
+
|
135
|
+
补丁的描述信息
|
136
|
+
|
137
|
+
:return: The descripition of this HotfixInfo.
|
138
|
+
:rtype: str
|
139
|
+
"""
|
140
|
+
return self._descripition
|
141
|
+
|
142
|
+
@descripition.setter
|
143
|
+
def descripition(self, descripition):
|
144
|
+
"""Sets the descripition of this HotfixInfo.
|
145
|
+
|
146
|
+
补丁的描述信息
|
147
|
+
|
148
|
+
:param descripition: The descripition of this HotfixInfo.
|
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, HotfixInfo):
|
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,143 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class HotfixVersionInfo:
|
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
|
+
'upgrade_finished_time': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'version': 'version',
|
26
|
+
'upgrade_finished_time': 'upgrade_finished_time'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, version=None, upgrade_finished_time=None):
|
30
|
+
"""HotfixVersionInfo
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param version: 热补丁版本。
|
35
|
+
:type version: str
|
36
|
+
:param upgrade_finished_time: 热补丁升级完成时间列表。 热补丁升级完成时间,格式为“yyyy-mm-dd hh:mm:ss timezone”。 其中timezone是指时区。
|
37
|
+
:type upgrade_finished_time: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._version = None
|
43
|
+
self._upgrade_finished_time = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.version = version
|
47
|
+
if upgrade_finished_time is not None:
|
48
|
+
self.upgrade_finished_time = upgrade_finished_time
|
49
|
+
|
50
|
+
@property
|
51
|
+
def version(self):
|
52
|
+
"""Gets the version of this HotfixVersionInfo.
|
53
|
+
|
54
|
+
热补丁版本。
|
55
|
+
|
56
|
+
:return: The version of this HotfixVersionInfo.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._version
|
60
|
+
|
61
|
+
@version.setter
|
62
|
+
def version(self, version):
|
63
|
+
"""Sets the version of this HotfixVersionInfo.
|
64
|
+
|
65
|
+
热补丁版本。
|
66
|
+
|
67
|
+
:param version: The version of this HotfixVersionInfo.
|
68
|
+
:type version: str
|
69
|
+
"""
|
70
|
+
self._version = version
|
71
|
+
|
72
|
+
@property
|
73
|
+
def upgrade_finished_time(self):
|
74
|
+
"""Gets the upgrade_finished_time of this HotfixVersionInfo.
|
75
|
+
|
76
|
+
热补丁升级完成时间列表。 热补丁升级完成时间,格式为“yyyy-mm-dd hh:mm:ss timezone”。 其中timezone是指时区。
|
77
|
+
|
78
|
+
:return: The upgrade_finished_time of this HotfixVersionInfo.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._upgrade_finished_time
|
82
|
+
|
83
|
+
@upgrade_finished_time.setter
|
84
|
+
def upgrade_finished_time(self, upgrade_finished_time):
|
85
|
+
"""Sets the upgrade_finished_time of this HotfixVersionInfo.
|
86
|
+
|
87
|
+
热补丁升级完成时间列表。 热补丁升级完成时间,格式为“yyyy-mm-dd hh:mm:ss timezone”。 其中timezone是指时区。
|
88
|
+
|
89
|
+
:param upgrade_finished_time: The upgrade_finished_time of this HotfixVersionInfo.
|
90
|
+
:type upgrade_finished_time: str
|
91
|
+
"""
|
92
|
+
self._upgrade_finished_time = upgrade_finished_time
|
93
|
+
|
94
|
+
def to_dict(self):
|
95
|
+
"""Returns the model properties as a dict"""
|
96
|
+
result = {}
|
97
|
+
|
98
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
99
|
+
value = getattr(self, attr)
|
100
|
+
if isinstance(value, list):
|
101
|
+
result[attr] = list(map(
|
102
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
103
|
+
value
|
104
|
+
))
|
105
|
+
elif hasattr(value, "to_dict"):
|
106
|
+
result[attr] = value.to_dict()
|
107
|
+
elif isinstance(value, dict):
|
108
|
+
result[attr] = dict(map(
|
109
|
+
lambda item: (item[0], item[1].to_dict())
|
110
|
+
if hasattr(item[1], "to_dict") else item,
|
111
|
+
value.items()
|
112
|
+
))
|
113
|
+
else:
|
114
|
+
if attr in self.sensitive_list:
|
115
|
+
result[attr] = "****"
|
116
|
+
else:
|
117
|
+
result[attr] = value
|
118
|
+
|
119
|
+
return result
|
120
|
+
|
121
|
+
def to_str(self):
|
122
|
+
"""Returns the string representation of the model"""
|
123
|
+
import simplejson as json
|
124
|
+
if six.PY2:
|
125
|
+
import sys
|
126
|
+
reload(sys)
|
127
|
+
sys.setdefaultencoding("utf-8")
|
128
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
129
|
+
|
130
|
+
def __repr__(self):
|
131
|
+
"""For `print`"""
|
132
|
+
return self.to_str()
|
133
|
+
|
134
|
+
def __eq__(self, other):
|
135
|
+
"""Returns true if both objects are equal"""
|
136
|
+
if not isinstance(other, HotfixVersionInfo):
|
137
|
+
return False
|
138
|
+
|
139
|
+
return self.__dict__ == other.__dict__
|
140
|
+
|
141
|
+
def __ne__(self, other):
|
142
|
+
"""Returns true if both objects are not equal"""
|
143
|
+
return not self == other
|