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,203 @@
|
|
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 ShowBatchUpgradeCandidateVersionsResponse(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[HotfixInfo]'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'upgrade_type_list': 'upgrade_type_list',
|
29
|
+
'target_version': 'target_version',
|
30
|
+
'upgrade_candidate_versions': 'upgrade_candidate_versions',
|
31
|
+
'hotfix_upgrade_infos': 'hotfix_upgrade_infos'
|
32
|
+
}
|
33
|
+
|
34
|
+
def __init__(self, upgrade_type_list=None, target_version=None, upgrade_candidate_versions=None, hotfix_upgrade_infos=None):
|
35
|
+
"""ShowBatchUpgradeCandidateVersionsResponse
|
36
|
+
|
37
|
+
The model defined in huaweicloud sdk
|
38
|
+
|
39
|
+
:param upgrade_type_list: 升级类型信息列表
|
40
|
+
:type upgrade_type_list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeTypeInfo`]
|
41
|
+
:param target_version: 升级目标版本,没有在滚动升级中返回null
|
42
|
+
:type target_version: str
|
43
|
+
:param upgrade_candidate_versions: 可以升级的版本,包括大小版本
|
44
|
+
:type upgrade_candidate_versions: list[str]
|
45
|
+
:param hotfix_upgrade_infos: 可以升级的热补丁信息
|
46
|
+
:type hotfix_upgrade_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixInfo`]
|
47
|
+
"""
|
48
|
+
|
49
|
+
super(ShowBatchUpgradeCandidateVersionsResponse, self).__init__()
|
50
|
+
|
51
|
+
self._upgrade_type_list = None
|
52
|
+
self._target_version = None
|
53
|
+
self._upgrade_candidate_versions = None
|
54
|
+
self._hotfix_upgrade_infos = None
|
55
|
+
self.discriminator = None
|
56
|
+
|
57
|
+
if upgrade_type_list is not None:
|
58
|
+
self.upgrade_type_list = upgrade_type_list
|
59
|
+
if target_version is not None:
|
60
|
+
self.target_version = target_version
|
61
|
+
if upgrade_candidate_versions is not None:
|
62
|
+
self.upgrade_candidate_versions = upgrade_candidate_versions
|
63
|
+
if hotfix_upgrade_infos is not None:
|
64
|
+
self.hotfix_upgrade_infos = hotfix_upgrade_infos
|
65
|
+
|
66
|
+
@property
|
67
|
+
def upgrade_type_list(self):
|
68
|
+
"""Gets the upgrade_type_list of this ShowBatchUpgradeCandidateVersionsResponse.
|
69
|
+
|
70
|
+
升级类型信息列表
|
71
|
+
|
72
|
+
:return: The upgrade_type_list of this ShowBatchUpgradeCandidateVersionsResponse.
|
73
|
+
:rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeTypeInfo`]
|
74
|
+
"""
|
75
|
+
return self._upgrade_type_list
|
76
|
+
|
77
|
+
@upgrade_type_list.setter
|
78
|
+
def upgrade_type_list(self, upgrade_type_list):
|
79
|
+
"""Sets the upgrade_type_list of this ShowBatchUpgradeCandidateVersionsResponse.
|
80
|
+
|
81
|
+
升级类型信息列表
|
82
|
+
|
83
|
+
:param upgrade_type_list: The upgrade_type_list of this ShowBatchUpgradeCandidateVersionsResponse.
|
84
|
+
:type upgrade_type_list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeTypeInfo`]
|
85
|
+
"""
|
86
|
+
self._upgrade_type_list = upgrade_type_list
|
87
|
+
|
88
|
+
@property
|
89
|
+
def target_version(self):
|
90
|
+
"""Gets the target_version of this ShowBatchUpgradeCandidateVersionsResponse.
|
91
|
+
|
92
|
+
升级目标版本,没有在滚动升级中返回null
|
93
|
+
|
94
|
+
:return: The target_version of this ShowBatchUpgradeCandidateVersionsResponse.
|
95
|
+
:rtype: str
|
96
|
+
"""
|
97
|
+
return self._target_version
|
98
|
+
|
99
|
+
@target_version.setter
|
100
|
+
def target_version(self, target_version):
|
101
|
+
"""Sets the target_version of this ShowBatchUpgradeCandidateVersionsResponse.
|
102
|
+
|
103
|
+
升级目标版本,没有在滚动升级中返回null
|
104
|
+
|
105
|
+
:param target_version: The target_version of this ShowBatchUpgradeCandidateVersionsResponse.
|
106
|
+
:type target_version: str
|
107
|
+
"""
|
108
|
+
self._target_version = target_version
|
109
|
+
|
110
|
+
@property
|
111
|
+
def upgrade_candidate_versions(self):
|
112
|
+
"""Gets the upgrade_candidate_versions of this ShowBatchUpgradeCandidateVersionsResponse.
|
113
|
+
|
114
|
+
可以升级的版本,包括大小版本
|
115
|
+
|
116
|
+
:return: The upgrade_candidate_versions of this ShowBatchUpgradeCandidateVersionsResponse.
|
117
|
+
:rtype: list[str]
|
118
|
+
"""
|
119
|
+
return self._upgrade_candidate_versions
|
120
|
+
|
121
|
+
@upgrade_candidate_versions.setter
|
122
|
+
def upgrade_candidate_versions(self, upgrade_candidate_versions):
|
123
|
+
"""Sets the upgrade_candidate_versions of this ShowBatchUpgradeCandidateVersionsResponse.
|
124
|
+
|
125
|
+
可以升级的版本,包括大小版本
|
126
|
+
|
127
|
+
:param upgrade_candidate_versions: The upgrade_candidate_versions of this ShowBatchUpgradeCandidateVersionsResponse.
|
128
|
+
:type upgrade_candidate_versions: list[str]
|
129
|
+
"""
|
130
|
+
self._upgrade_candidate_versions = upgrade_candidate_versions
|
131
|
+
|
132
|
+
@property
|
133
|
+
def hotfix_upgrade_infos(self):
|
134
|
+
"""Gets the hotfix_upgrade_infos of this ShowBatchUpgradeCandidateVersionsResponse.
|
135
|
+
|
136
|
+
可以升级的热补丁信息
|
137
|
+
|
138
|
+
:return: The hotfix_upgrade_infos of this ShowBatchUpgradeCandidateVersionsResponse.
|
139
|
+
:rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixInfo`]
|
140
|
+
"""
|
141
|
+
return self._hotfix_upgrade_infos
|
142
|
+
|
143
|
+
@hotfix_upgrade_infos.setter
|
144
|
+
def hotfix_upgrade_infos(self, hotfix_upgrade_infos):
|
145
|
+
"""Sets the hotfix_upgrade_infos of this ShowBatchUpgradeCandidateVersionsResponse.
|
146
|
+
|
147
|
+
可以升级的热补丁信息
|
148
|
+
|
149
|
+
:param hotfix_upgrade_infos: The hotfix_upgrade_infos of this ShowBatchUpgradeCandidateVersionsResponse.
|
150
|
+
:type hotfix_upgrade_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixInfo`]
|
151
|
+
"""
|
152
|
+
self._hotfix_upgrade_infos = hotfix_upgrade_infos
|
153
|
+
|
154
|
+
def to_dict(self):
|
155
|
+
"""Returns the model properties as a dict"""
|
156
|
+
result = {}
|
157
|
+
|
158
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
159
|
+
value = getattr(self, attr)
|
160
|
+
if isinstance(value, list):
|
161
|
+
result[attr] = list(map(
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
163
|
+
value
|
164
|
+
))
|
165
|
+
elif hasattr(value, "to_dict"):
|
166
|
+
result[attr] = value.to_dict()
|
167
|
+
elif isinstance(value, dict):
|
168
|
+
result[attr] = dict(map(
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
171
|
+
value.items()
|
172
|
+
))
|
173
|
+
else:
|
174
|
+
if attr in self.sensitive_list:
|
175
|
+
result[attr] = "****"
|
176
|
+
else:
|
177
|
+
result[attr] = value
|
178
|
+
|
179
|
+
return result
|
180
|
+
|
181
|
+
def to_str(self):
|
182
|
+
"""Returns the string representation of the model"""
|
183
|
+
import simplejson as json
|
184
|
+
if six.PY2:
|
185
|
+
import sys
|
186
|
+
reload(sys)
|
187
|
+
sys.setdefaultencoding("utf-8")
|
188
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
189
|
+
|
190
|
+
def __repr__(self):
|
191
|
+
"""For `print`"""
|
192
|
+
return self.to_str()
|
193
|
+
|
194
|
+
def __eq__(self, other):
|
195
|
+
"""Returns true if both objects are equal"""
|
196
|
+
if not isinstance(other, ShowBatchUpgradeCandidateVersionsResponse):
|
197
|
+
return False
|
198
|
+
|
199
|
+
return self.__dict__ == other.__dict__
|
200
|
+
|
201
|
+
def __ne__(self, other):
|
202
|
+
"""Returns true if both objects are not equal"""
|
203
|
+
return not self == other
|
@@ -0,0 +1,115 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpgradeInstancesRequestBody:
|
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
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'instance_ids': 'instance_ids'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, instance_ids=None):
|
28
|
+
"""UpgradeInstancesRequestBody
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param instance_ids: 批量实例ID
|
33
|
+
:type instance_ids: list[str]
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._instance_ids = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if instance_ids is not None:
|
42
|
+
self.instance_ids = instance_ids
|
43
|
+
|
44
|
+
@property
|
45
|
+
def instance_ids(self):
|
46
|
+
"""Gets the instance_ids of this UpgradeInstancesRequestBody.
|
47
|
+
|
48
|
+
批量实例ID
|
49
|
+
|
50
|
+
:return: The instance_ids of this UpgradeInstancesRequestBody.
|
51
|
+
:rtype: list[str]
|
52
|
+
"""
|
53
|
+
return self._instance_ids
|
54
|
+
|
55
|
+
@instance_ids.setter
|
56
|
+
def instance_ids(self, instance_ids):
|
57
|
+
"""Sets the instance_ids of this UpgradeInstancesRequestBody.
|
58
|
+
|
59
|
+
批量实例ID
|
60
|
+
|
61
|
+
:param instance_ids: The instance_ids of this UpgradeInstancesRequestBody.
|
62
|
+
:type instance_ids: list[str]
|
63
|
+
"""
|
64
|
+
self._instance_ids = instance_ids
|
65
|
+
|
66
|
+
def to_dict(self):
|
67
|
+
"""Returns the model properties as a dict"""
|
68
|
+
result = {}
|
69
|
+
|
70
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
71
|
+
value = getattr(self, attr)
|
72
|
+
if isinstance(value, list):
|
73
|
+
result[attr] = list(map(
|
74
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
75
|
+
value
|
76
|
+
))
|
77
|
+
elif hasattr(value, "to_dict"):
|
78
|
+
result[attr] = value.to_dict()
|
79
|
+
elif isinstance(value, dict):
|
80
|
+
result[attr] = dict(map(
|
81
|
+
lambda item: (item[0], item[1].to_dict())
|
82
|
+
if hasattr(item[1], "to_dict") else item,
|
83
|
+
value.items()
|
84
|
+
))
|
85
|
+
else:
|
86
|
+
if attr in self.sensitive_list:
|
87
|
+
result[attr] = "****"
|
88
|
+
else:
|
89
|
+
result[attr] = value
|
90
|
+
|
91
|
+
return result
|
92
|
+
|
93
|
+
def to_str(self):
|
94
|
+
"""Returns the string representation of the model"""
|
95
|
+
import simplejson as json
|
96
|
+
if six.PY2:
|
97
|
+
import sys
|
98
|
+
reload(sys)
|
99
|
+
sys.setdefaultencoding("utf-8")
|
100
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
101
|
+
|
102
|
+
def __repr__(self):
|
103
|
+
"""For `print`"""
|
104
|
+
return self.to_str()
|
105
|
+
|
106
|
+
def __eq__(self, other):
|
107
|
+
"""Returns true if both objects are equal"""
|
108
|
+
if not isinstance(other, UpgradeInstancesRequestBody):
|
109
|
+
return False
|
110
|
+
|
111
|
+
return self.__dict__ == other.__dict__
|
112
|
+
|
113
|
+
def __ne__(self, other):
|
114
|
+
"""Returns true if both objects are not equal"""
|
115
|
+
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 UpgradeInstancesVersionRequest:
|
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': 'GaussDBUpgradeInstancesVersionRequest'
|
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
|
+
"""UpgradeInstancesVersionRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param x_language: 语言
|
35
|
+
:type x_language: str
|
36
|
+
:param body: Body of the UpgradeInstancesVersionRequest
|
37
|
+
:type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.GaussDBUpgradeInstancesVersionRequest`
|
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 UpgradeInstancesVersionRequest.
|
54
|
+
|
55
|
+
语言
|
56
|
+
|
57
|
+
:return: The x_language of this UpgradeInstancesVersionRequest.
|
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 UpgradeInstancesVersionRequest.
|
65
|
+
|
66
|
+
语言
|
67
|
+
|
68
|
+
:param x_language: The x_language of this UpgradeInstancesVersionRequest.
|
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 UpgradeInstancesVersionRequest.
|
76
|
+
|
77
|
+
:return: The body of this UpgradeInstancesVersionRequest.
|
78
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.GaussDBUpgradeInstancesVersionRequest`
|
79
|
+
"""
|
80
|
+
return self._body
|
81
|
+
|
82
|
+
@body.setter
|
83
|
+
def body(self, body):
|
84
|
+
"""Sets the body of this UpgradeInstancesVersionRequest.
|
85
|
+
|
86
|
+
:param body: The body of this UpgradeInstancesVersionRequest.
|
87
|
+
:type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.GaussDBUpgradeInstancesVersionRequest`
|
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, UpgradeInstancesVersionRequest):
|
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 UpgradeInstancesVersionResponse(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
|
+
'job_ids': 'list[str]',
|
22
|
+
'succeeded_num': 'int',
|
23
|
+
'failed_num': 'int',
|
24
|
+
'failed_instance_ids': 'list[str]',
|
25
|
+
'error_messages': 'list[str]'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'job_ids': 'job_ids',
|
30
|
+
'succeeded_num': 'succeeded_num',
|
31
|
+
'failed_num': 'failed_num',
|
32
|
+
'failed_instance_ids': 'failed_instance_ids',
|
33
|
+
'error_messages': 'error_messages'
|
34
|
+
}
|
35
|
+
|
36
|
+
def __init__(self, job_ids=None, succeeded_num=None, failed_num=None, failed_instance_ids=None, error_messages=None):
|
37
|
+
"""UpgradeInstancesVersionResponse
|
38
|
+
|
39
|
+
The model defined in huaweicloud sdk
|
40
|
+
|
41
|
+
:param job_ids: 任务id。
|
42
|
+
:type job_ids: list[str]
|
43
|
+
:param succeeded_num: 下发成功的实例数量
|
44
|
+
:type succeeded_num: int
|
45
|
+
:param failed_num: 下发失败的实例数量
|
46
|
+
:type failed_num: int
|
47
|
+
:param failed_instance_ids: 下发失败的实例ID列表
|
48
|
+
:type failed_instance_ids: list[str]
|
49
|
+
:param error_messages: 下发失败错误信息列表
|
50
|
+
:type error_messages: list[str]
|
51
|
+
"""
|
52
|
+
|
53
|
+
super(UpgradeInstancesVersionResponse, self).__init__()
|
54
|
+
|
55
|
+
self._job_ids = None
|
56
|
+
self._succeeded_num = None
|
57
|
+
self._failed_num = None
|
58
|
+
self._failed_instance_ids = None
|
59
|
+
self._error_messages = None
|
60
|
+
self.discriminator = None
|
61
|
+
|
62
|
+
if job_ids is not None:
|
63
|
+
self.job_ids = job_ids
|
64
|
+
if succeeded_num is not None:
|
65
|
+
self.succeeded_num = succeeded_num
|
66
|
+
if failed_num is not None:
|
67
|
+
self.failed_num = failed_num
|
68
|
+
if failed_instance_ids is not None:
|
69
|
+
self.failed_instance_ids = failed_instance_ids
|
70
|
+
if error_messages is not None:
|
71
|
+
self.error_messages = error_messages
|
72
|
+
|
73
|
+
@property
|
74
|
+
def job_ids(self):
|
75
|
+
"""Gets the job_ids of this UpgradeInstancesVersionResponse.
|
76
|
+
|
77
|
+
任务id。
|
78
|
+
|
79
|
+
:return: The job_ids of this UpgradeInstancesVersionResponse.
|
80
|
+
:rtype: list[str]
|
81
|
+
"""
|
82
|
+
return self._job_ids
|
83
|
+
|
84
|
+
@job_ids.setter
|
85
|
+
def job_ids(self, job_ids):
|
86
|
+
"""Sets the job_ids of this UpgradeInstancesVersionResponse.
|
87
|
+
|
88
|
+
任务id。
|
89
|
+
|
90
|
+
:param job_ids: The job_ids of this UpgradeInstancesVersionResponse.
|
91
|
+
:type job_ids: list[str]
|
92
|
+
"""
|
93
|
+
self._job_ids = job_ids
|
94
|
+
|
95
|
+
@property
|
96
|
+
def succeeded_num(self):
|
97
|
+
"""Gets the succeeded_num of this UpgradeInstancesVersionResponse.
|
98
|
+
|
99
|
+
下发成功的实例数量
|
100
|
+
|
101
|
+
:return: The succeeded_num of this UpgradeInstancesVersionResponse.
|
102
|
+
:rtype: int
|
103
|
+
"""
|
104
|
+
return self._succeeded_num
|
105
|
+
|
106
|
+
@succeeded_num.setter
|
107
|
+
def succeeded_num(self, succeeded_num):
|
108
|
+
"""Sets the succeeded_num of this UpgradeInstancesVersionResponse.
|
109
|
+
|
110
|
+
下发成功的实例数量
|
111
|
+
|
112
|
+
:param succeeded_num: The succeeded_num of this UpgradeInstancesVersionResponse.
|
113
|
+
:type succeeded_num: int
|
114
|
+
"""
|
115
|
+
self._succeeded_num = succeeded_num
|
116
|
+
|
117
|
+
@property
|
118
|
+
def failed_num(self):
|
119
|
+
"""Gets the failed_num of this UpgradeInstancesVersionResponse.
|
120
|
+
|
121
|
+
下发失败的实例数量
|
122
|
+
|
123
|
+
:return: The failed_num of this UpgradeInstancesVersionResponse.
|
124
|
+
:rtype: int
|
125
|
+
"""
|
126
|
+
return self._failed_num
|
127
|
+
|
128
|
+
@failed_num.setter
|
129
|
+
def failed_num(self, failed_num):
|
130
|
+
"""Sets the failed_num of this UpgradeInstancesVersionResponse.
|
131
|
+
|
132
|
+
下发失败的实例数量
|
133
|
+
|
134
|
+
:param failed_num: The failed_num of this UpgradeInstancesVersionResponse.
|
135
|
+
:type failed_num: int
|
136
|
+
"""
|
137
|
+
self._failed_num = failed_num
|
138
|
+
|
139
|
+
@property
|
140
|
+
def failed_instance_ids(self):
|
141
|
+
"""Gets the failed_instance_ids of this UpgradeInstancesVersionResponse.
|
142
|
+
|
143
|
+
下发失败的实例ID列表
|
144
|
+
|
145
|
+
:return: The failed_instance_ids of this UpgradeInstancesVersionResponse.
|
146
|
+
:rtype: list[str]
|
147
|
+
"""
|
148
|
+
return self._failed_instance_ids
|
149
|
+
|
150
|
+
@failed_instance_ids.setter
|
151
|
+
def failed_instance_ids(self, failed_instance_ids):
|
152
|
+
"""Sets the failed_instance_ids of this UpgradeInstancesVersionResponse.
|
153
|
+
|
154
|
+
下发失败的实例ID列表
|
155
|
+
|
156
|
+
:param failed_instance_ids: The failed_instance_ids of this UpgradeInstancesVersionResponse.
|
157
|
+
:type failed_instance_ids: list[str]
|
158
|
+
"""
|
159
|
+
self._failed_instance_ids = failed_instance_ids
|
160
|
+
|
161
|
+
@property
|
162
|
+
def error_messages(self):
|
163
|
+
"""Gets the error_messages of this UpgradeInstancesVersionResponse.
|
164
|
+
|
165
|
+
下发失败错误信息列表
|
166
|
+
|
167
|
+
:return: The error_messages of this UpgradeInstancesVersionResponse.
|
168
|
+
:rtype: list[str]
|
169
|
+
"""
|
170
|
+
return self._error_messages
|
171
|
+
|
172
|
+
@error_messages.setter
|
173
|
+
def error_messages(self, error_messages):
|
174
|
+
"""Sets the error_messages of this UpgradeInstancesVersionResponse.
|
175
|
+
|
176
|
+
下发失败错误信息列表
|
177
|
+
|
178
|
+
:param error_messages: The error_messages of this UpgradeInstancesVersionResponse.
|
179
|
+
:type error_messages: list[str]
|
180
|
+
"""
|
181
|
+
self._error_messages = error_messages
|
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, UpgradeInstancesVersionResponse):
|
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
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: huaweicloudsdkgaussdbforopengauss
|
3
|
-
Version: 3.1.
|
3
|
+
Version: 3.1.103
|
4
4
|
Summary: GaussDBforopenGauss
|
5
5
|
Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
|
6
6
|
Author: HuaweiCloud SDK
|
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
|
|
22
22
|
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
|
23
23
|
Description-Content-Type: text/markdown
|
24
24
|
License-File: LICENSE
|
25
|
-
Requires-Dist: huaweicloudsdkcore >=3.1.
|
25
|
+
Requires-Dist: huaweicloudsdkcore >=3.1.103
|
26
26
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|