huaweicloudsdkgaussdbforopengauss 3.1.97__py2.py3-none-any.whl → 3.1.99__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 +3 -1
- huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +3 -1
- huaweicloudsdkgaussdbforopengauss/v3/model/available_flavor_info_result.py +18 -18
- huaweicloudsdkgaussdbforopengauss/v3/model/components.py +61 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/create_configuration_template_request_body.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/create_manual_backup_request_body.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_manual_backup_request.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/gauss_d_bfor_open_gauss_list_database.py +61 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/gauss_d_bfor_open_gauss_user_for_list.py +50 -21
- huaweicloudsdkgaussdbforopengauss/v3/model/{gauss_d_bfor_open_gauss_user_for_list_attributes.py → gauss_d_bfor_open_gauss_user_for_list_attribute.py} +67 -38
- huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_rollback_infos.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_upgrade_infos.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/instances_result.py +4 -4
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_instance_request.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_instance_request_body.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/para_group_parameter_result.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/param_group_diff_request_body.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/recycle_instances_detail_result.py +6 -6
- huaweicloudsdkgaussdbforopengauss/v3/model/search_auto_enlarge_policy_response.py +61 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py +53 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/task_detail_result.py +59 -1
- huaweicloudsdkgaussdbforopengauss/v3/model/update_instance_configuration_response.py +32 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_type_info.py +32 -3
- {huaweicloudsdkgaussdbforopengauss-3.1.97.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.99.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.97.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.99.dist-info}/RECORD +28 -26
- {huaweicloudsdkgaussdbforopengauss-3.1.97.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.99.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.97.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.99.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.97.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.99.dist-info}/top_level.txt +0 -0
@@ -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 HotfixUpgradeInfos:
|
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
|
+
"""HotfixUpgradeInfos
|
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 HotfixUpgradeInfos.
|
68
|
+
|
69
|
+
热补丁版本。
|
70
|
+
|
71
|
+
:return: The version of this HotfixUpgradeInfos.
|
72
|
+
:rtype: str
|
73
|
+
"""
|
74
|
+
return self._version
|
75
|
+
|
76
|
+
@version.setter
|
77
|
+
def version(self, version):
|
78
|
+
"""Sets the version of this HotfixUpgradeInfos.
|
79
|
+
|
80
|
+
热补丁版本。
|
81
|
+
|
82
|
+
:param version: The version of this HotfixUpgradeInfos.
|
83
|
+
:type version: str
|
84
|
+
"""
|
85
|
+
self._version = version
|
86
|
+
|
87
|
+
@property
|
88
|
+
def common_patch(self):
|
89
|
+
"""Gets the common_patch of this HotfixUpgradeInfos.
|
90
|
+
|
91
|
+
通用/非通用补丁信息。 枚举值: \"common\": 通用补丁。 \"certain\": 定制补丁。
|
92
|
+
|
93
|
+
:return: The common_patch of this HotfixUpgradeInfos.
|
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 HotfixUpgradeInfos.
|
101
|
+
|
102
|
+
通用/非通用补丁信息。 枚举值: \"common\": 通用补丁。 \"certain\": 定制补丁。
|
103
|
+
|
104
|
+
:param common_patch: The common_patch of this HotfixUpgradeInfos.
|
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 HotfixUpgradeInfos.
|
112
|
+
|
113
|
+
是否和备份相关。
|
114
|
+
|
115
|
+
:return: The backup_sensitive of this HotfixUpgradeInfos.
|
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 HotfixUpgradeInfos.
|
123
|
+
|
124
|
+
是否和备份相关。
|
125
|
+
|
126
|
+
:param backup_sensitive: The backup_sensitive of this HotfixUpgradeInfos.
|
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 HotfixUpgradeInfos.
|
134
|
+
|
135
|
+
补丁的描述信息。
|
136
|
+
|
137
|
+
:return: The descripition of this HotfixUpgradeInfos.
|
138
|
+
:rtype: str
|
139
|
+
"""
|
140
|
+
return self._descripition
|
141
|
+
|
142
|
+
@descripition.setter
|
143
|
+
def descripition(self, descripition):
|
144
|
+
"""Sets the descripition of this HotfixUpgradeInfos.
|
145
|
+
|
146
|
+
补丁的描述信息。
|
147
|
+
|
148
|
+
:param descripition: The descripition of this HotfixUpgradeInfos.
|
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, HotfixUpgradeInfos):
|
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
|
@@ -21,7 +21,7 @@ class InstancesResult:
|
|
21
21
|
'instance_id': 'str',
|
22
22
|
'volume_type': 'str',
|
23
23
|
'data_volume_size': 'float',
|
24
|
-
'version': '
|
24
|
+
'version': 'str',
|
25
25
|
'mode': 'str',
|
26
26
|
'instance_mode': 'str'
|
27
27
|
}
|
@@ -50,7 +50,7 @@ class InstancesResult:
|
|
50
50
|
:param data_volume_size: 磁盘大小,单位:GB。
|
51
51
|
:type data_volume_size: float
|
52
52
|
:param version: 实例版本信息。
|
53
|
-
:type version:
|
53
|
+
:type version: str
|
54
54
|
:param mode: 部署形态。
|
55
55
|
:type mode: str
|
56
56
|
:param instance_mode: 实例模型,企业版,标准版,基础版。
|
@@ -178,7 +178,7 @@ class InstancesResult:
|
|
178
178
|
实例版本信息。
|
179
179
|
|
180
180
|
:return: The version of this InstancesResult.
|
181
|
-
:rtype:
|
181
|
+
:rtype: str
|
182
182
|
"""
|
183
183
|
return self._version
|
184
184
|
|
@@ -189,7 +189,7 @@ class InstancesResult:
|
|
189
189
|
实例版本信息。
|
190
190
|
|
191
191
|
:param version: The version of this InstancesResult.
|
192
|
-
:type version:
|
192
|
+
:type version: str
|
193
193
|
"""
|
194
194
|
self._version = version
|
195
195
|
|
@@ -111,7 +111,7 @@ class OpenGaussInstanceRequest:
|
|
111
111
|
:type sharding_num: int
|
112
112
|
:param coordinator_num: 仅分布式形态需要填写该参数。协调节点数量,取值范围1~9。CN数量必须小于或等于两倍的分片数。
|
113
113
|
:type coordinator_num: int
|
114
|
-
:param replica_num: 实例副本数,支持取值
|
114
|
+
:param replica_num: 实例副本数,支持取值3。不填默认为3。仅支持1.3.0及以上版本的实例。 说明: 2副本选项仅针对特定用户开放,如需配置白名单权限,您可以在管理控制台右上角,选择“[工单 > 新建工单](https://auth.huaweicloud.com/authui/login.html?service=https%3A%2F%2Fconsole.huaweicloud.com%2Fticket%2F%3Fregion%3Dcn-north-1%26locale%3Dzh-cn%26cloud_route_state%3D%2Fticketindex%2FcreateIndex#/login)”,提交开通白名单的申请。
|
115
115
|
:type replica_num: int
|
116
116
|
:param enable_force_switch: enable_force_switch表示是否开启备机强升主功能,enable_force_switch=true表示开启备机强升主功能,enable_force_switch=false表示关闭,默认关闭。仅支持1.2.2及以上版本。 说明: 备机强升主功能适用场景:在主机发生故障后,为了保障集群的可用性,强制拉起备机作为新主机对外提供服务的场景。 本功能在集群故障状态下,以丢失部分数据为代价换取集群尽可能快的恢复服务。本功能是集群状态为不可用时的一个逃生方法,如果操作者不清楚备机强升后丢失数据对业务的影响,请勿使用本功能。 备机强升主相关介绍请参考《故障处理》备机强升主章节。
|
117
117
|
:type enable_force_switch: bool
|
@@ -601,7 +601,7 @@ class OpenGaussInstanceRequest:
|
|
601
601
|
def replica_num(self):
|
602
602
|
"""Gets the replica_num of this OpenGaussInstanceRequest.
|
603
603
|
|
604
|
-
实例副本数,支持取值
|
604
|
+
实例副本数,支持取值3。不填默认为3。仅支持1.3.0及以上版本的实例。 说明: 2副本选项仅针对特定用户开放,如需配置白名单权限,您可以在管理控制台右上角,选择“[工单 > 新建工单](https://auth.huaweicloud.com/authui/login.html?service=https%3A%2F%2Fconsole.huaweicloud.com%2Fticket%2F%3Fregion%3Dcn-north-1%26locale%3Dzh-cn%26cloud_route_state%3D%2Fticketindex%2FcreateIndex#/login)”,提交开通白名单的申请。
|
605
605
|
|
606
606
|
:return: The replica_num of this OpenGaussInstanceRequest.
|
607
607
|
:rtype: int
|
@@ -612,7 +612,7 @@ class OpenGaussInstanceRequest:
|
|
612
612
|
def replica_num(self, replica_num):
|
613
613
|
"""Sets the replica_num of this OpenGaussInstanceRequest.
|
614
614
|
|
615
|
-
实例副本数,支持取值
|
615
|
+
实例副本数,支持取值3。不填默认为3。仅支持1.3.0及以上版本的实例。 说明: 2副本选项仅针对特定用户开放,如需配置白名单权限,您可以在管理控制台右上角,选择“[工单 > 新建工单](https://auth.huaweicloud.com/authui/login.html?service=https%3A%2F%2Fconsole.huaweicloud.com%2Fticket%2F%3Fregion%3Dcn-north-1%26locale%3Dzh-cn%26cloud_route_state%3D%2Fticketindex%2FcreateIndex#/login)”,提交开通白名单的申请。
|
616
616
|
|
617
617
|
:param replica_num: The replica_num of this OpenGaussInstanceRequest.
|
618
618
|
:type replica_num: int
|
@@ -113,7 +113,7 @@ class OpenGaussInstanceRequestBody:
|
|
113
113
|
:type sharding_num: int
|
114
114
|
:param coordinator_num: 仅分布式形态需要填写该参数。协调节点数量,取值范围1~9。CN数量必须小于或等于两倍的分片数。
|
115
115
|
:type coordinator_num: int
|
116
|
-
:param replica_num: 实例副本数,支持取值
|
116
|
+
:param replica_num: 实例副本数,支持取值3。不填默认为3。仅支持1.3.0及以上版本的实例。 说明: 2副本选项仅针对特定用户开放,如需配置白名单权限,您可以在管理控制台右上角,选择“[工单 > 新建工单](https://auth.huaweicloud.com/authui/login.html?service=https%3A%2F%2Fconsole.huaweicloud.com%2Fticket%2F%3Fregion%3Dcn-north-1%26locale%3Dzh-cn%26cloud_route_state%3D%2Fticketindex%2FcreateIndex#/login)”,提交开通白名单的申请。
|
117
117
|
:type replica_num: int
|
118
118
|
:param enable_force_switch: enable_force_switch表示是否开启备机强升主功能,enable_force_switch=true表示开启备机强升主功能,enable_force_switch=false表示关闭,默认关闭。仅支持1.2.2及以上版本。 说明: 备机强升主功能适用场景:在主机发生故障后,为了保障集群的可用性,强制拉起备机作为新主机对外提供服务的场景。 本功能在集群故障状态下,以丢失部分数据为代价换取集群尽可能快的恢复服务。本功能是集群状态为不可用时的一个逃生方法,如果操作者不清楚备机强升后丢失数据对业务的影响,请勿使用本功能。 备机强升主相关介绍请参考《故障处理》备机强升主章节。
|
119
119
|
:type enable_force_switch: bool
|
@@ -608,7 +608,7 @@ class OpenGaussInstanceRequestBody:
|
|
608
608
|
def replica_num(self):
|
609
609
|
"""Gets the replica_num of this OpenGaussInstanceRequestBody.
|
610
610
|
|
611
|
-
实例副本数,支持取值
|
611
|
+
实例副本数,支持取值3。不填默认为3。仅支持1.3.0及以上版本的实例。 说明: 2副本选项仅针对特定用户开放,如需配置白名单权限,您可以在管理控制台右上角,选择“[工单 > 新建工单](https://auth.huaweicloud.com/authui/login.html?service=https%3A%2F%2Fconsole.huaweicloud.com%2Fticket%2F%3Fregion%3Dcn-north-1%26locale%3Dzh-cn%26cloud_route_state%3D%2Fticketindex%2FcreateIndex#/login)”,提交开通白名单的申请。
|
612
612
|
|
613
613
|
:return: The replica_num of this OpenGaussInstanceRequestBody.
|
614
614
|
:rtype: int
|
@@ -619,7 +619,7 @@ class OpenGaussInstanceRequestBody:
|
|
619
619
|
def replica_num(self, replica_num):
|
620
620
|
"""Sets the replica_num of this OpenGaussInstanceRequestBody.
|
621
621
|
|
622
|
-
实例副本数,支持取值
|
622
|
+
实例副本数,支持取值3。不填默认为3。仅支持1.3.0及以上版本的实例。 说明: 2副本选项仅针对特定用户开放,如需配置白名单权限,您可以在管理控制台右上角,选择“[工单 > 新建工单](https://auth.huaweicloud.com/authui/login.html?service=https%3A%2F%2Fconsole.huaweicloud.com%2Fticket%2F%3Fregion%3Dcn-north-1%26locale%3Dzh-cn%26cloud_route_state%3D%2Fticketindex%2FcreateIndex#/login)”,提交开通白名单的申请。
|
623
623
|
|
624
624
|
:param replica_num: The replica_num of this OpenGaussInstanceRequestBody.
|
625
625
|
:type replica_num: int
|
@@ -51,7 +51,7 @@ class ParaGroupParameterResult:
|
|
51
51
|
:type readonly: bool
|
52
52
|
:param value_range: 参数取值范围。
|
53
53
|
:type value_range: str
|
54
|
-
:param data_type: 参数类型,取值为“string”、“integer”、“boolean”、“list
|
54
|
+
:param data_type: 参数类型,取值为“string”、“integer”、“boolean”、“list”、\"all\"或“float”之一。
|
55
55
|
:type data_type: str
|
56
56
|
:param description: 参数描述。
|
57
57
|
:type description: str
|
@@ -190,7 +190,7 @@ class ParaGroupParameterResult:
|
|
190
190
|
def data_type(self):
|
191
191
|
"""Gets the data_type of this ParaGroupParameterResult.
|
192
192
|
|
193
|
-
参数类型,取值为“string”、“integer”、“boolean”、“list
|
193
|
+
参数类型,取值为“string”、“integer”、“boolean”、“list”、\"all\"或“float”之一。
|
194
194
|
|
195
195
|
:return: The data_type of this ParaGroupParameterResult.
|
196
196
|
:rtype: str
|
@@ -201,7 +201,7 @@ class ParaGroupParameterResult:
|
|
201
201
|
def data_type(self, data_type):
|
202
202
|
"""Sets the data_type of this ParaGroupParameterResult.
|
203
203
|
|
204
|
-
参数类型,取值为“string”、“integer”、“boolean”、“list
|
204
|
+
参数类型,取值为“string”、“integer”、“boolean”、“list”、\"all\"或“float”之一。
|
205
205
|
|
206
206
|
:param data_type: The data_type of this ParaGroupParameterResult.
|
207
207
|
:type data_type: str
|
@@ -33,7 +33,7 @@ class ParamGroupDiffRequestBody:
|
|
33
33
|
|
34
34
|
:param source_id: 需要进行比较的参数组模板ID。
|
35
35
|
:type source_id: str
|
36
|
-
:param target_id: 需要进行比较的参数组模板ID
|
36
|
+
:param target_id: 需要进行比较的参数组模板ID,需要与源参数组模板的部署形态相同才可比较。
|
37
37
|
:type target_id: str
|
38
38
|
"""
|
39
39
|
|
@@ -72,7 +72,7 @@ class ParamGroupDiffRequestBody:
|
|
72
72
|
def target_id(self):
|
73
73
|
"""Gets the target_id of this ParamGroupDiffRequestBody.
|
74
74
|
|
75
|
-
需要进行比较的参数组模板ID
|
75
|
+
需要进行比较的参数组模板ID,需要与源参数组模板的部署形态相同才可比较。
|
76
76
|
|
77
77
|
:return: The target_id of this ParamGroupDiffRequestBody.
|
78
78
|
:rtype: str
|
@@ -83,7 +83,7 @@ class ParamGroupDiffRequestBody:
|
|
83
83
|
def target_id(self, target_id):
|
84
84
|
"""Sets the target_id of this ParamGroupDiffRequestBody.
|
85
85
|
|
86
|
-
需要进行比较的参数组模板ID
|
86
|
+
需要进行比较的参数组模板ID,需要与源参数组模板的部署形态相同才可比较。
|
87
87
|
|
88
88
|
:param target_id: The target_id of this ParamGroupDiffRequestBody.
|
89
89
|
:type target_id: str
|
@@ -65,7 +65,7 @@ class RecycleInstancesDetailResult:
|
|
65
65
|
:type id: str
|
66
66
|
:param name: 实例名称。
|
67
67
|
:type name: str
|
68
|
-
:param ha_mode:
|
68
|
+
:param ha_mode: 部署形态(Ha:主备版;Independent:独立部署;Combined:混合部署)。
|
69
69
|
:type ha_mode: str
|
70
70
|
:param engine_name: 引擎名称
|
71
71
|
:type engine_name: str
|
@@ -93,7 +93,7 @@ class RecycleInstancesDetailResult:
|
|
93
93
|
:type recycle_backup_id: str
|
94
94
|
:param recycle_status: 回收站备份状态。(Running:运行中;Active:有效的)。
|
95
95
|
:type recycle_status: str
|
96
|
-
:param mode:
|
96
|
+
:param mode: 产品类型(basic:基础版;standard:标准版;enterprise:企业版)。
|
97
97
|
:type mode: str
|
98
98
|
"""
|
99
99
|
|
@@ -188,7 +188,7 @@ class RecycleInstancesDetailResult:
|
|
188
188
|
def ha_mode(self):
|
189
189
|
"""Gets the ha_mode of this RecycleInstancesDetailResult.
|
190
190
|
|
191
|
-
|
191
|
+
部署形态(Ha:主备版;Independent:独立部署;Combined:混合部署)。
|
192
192
|
|
193
193
|
:return: The ha_mode of this RecycleInstancesDetailResult.
|
194
194
|
:rtype: str
|
@@ -199,7 +199,7 @@ class RecycleInstancesDetailResult:
|
|
199
199
|
def ha_mode(self, ha_mode):
|
200
200
|
"""Sets the ha_mode of this RecycleInstancesDetailResult.
|
201
201
|
|
202
|
-
|
202
|
+
部署形态(Ha:主备版;Independent:独立部署;Combined:混合部署)。
|
203
203
|
|
204
204
|
:param ha_mode: The ha_mode of this RecycleInstancesDetailResult.
|
205
205
|
:type ha_mode: str
|
@@ -496,7 +496,7 @@ class RecycleInstancesDetailResult:
|
|
496
496
|
def mode(self):
|
497
497
|
"""Gets the mode of this RecycleInstancesDetailResult.
|
498
498
|
|
499
|
-
|
499
|
+
产品类型(basic:基础版;standard:标准版;enterprise:企业版)。
|
500
500
|
|
501
501
|
:return: The mode of this RecycleInstancesDetailResult.
|
502
502
|
:rtype: str
|
@@ -507,7 +507,7 @@ class RecycleInstancesDetailResult:
|
|
507
507
|
def mode(self, mode):
|
508
508
|
"""Sets the mode of this RecycleInstancesDetailResult.
|
509
509
|
|
510
|
-
|
510
|
+
产品类型(basic:基础版;standard:标准版;enterprise:企业版)。
|
511
511
|
|
512
512
|
:param mode: The mode of this RecycleInstancesDetailResult.
|
513
513
|
:type mode: str
|
@@ -23,7 +23,9 @@ class SearchAutoEnlargePolicyResponse(SdkResponse):
|
|
23
23
|
'min_volume_size': 'int',
|
24
24
|
'max_volume_size': 'int',
|
25
25
|
'trigger_available_percent': 'int',
|
26
|
-
'percents': 'list[int]'
|
26
|
+
'percents': 'list[int]',
|
27
|
+
'step_size': 'int',
|
28
|
+
'step_percent': 'int'
|
27
29
|
}
|
28
30
|
|
29
31
|
attribute_map = {
|
@@ -32,10 +34,12 @@ class SearchAutoEnlargePolicyResponse(SdkResponse):
|
|
32
34
|
'min_volume_size': 'min_volume_size',
|
33
35
|
'max_volume_size': 'max_volume_size',
|
34
36
|
'trigger_available_percent': 'trigger_available_percent',
|
35
|
-
'percents': 'percents'
|
37
|
+
'percents': 'percents',
|
38
|
+
'step_size': 'step_size',
|
39
|
+
'step_percent': 'step_percent'
|
36
40
|
}
|
37
41
|
|
38
|
-
def __init__(self, switch_option=None, limit_volume_size=None, min_volume_size=None, max_volume_size=None, trigger_available_percent=None, percents=None):
|
42
|
+
def __init__(self, switch_option=None, limit_volume_size=None, min_volume_size=None, max_volume_size=None, trigger_available_percent=None, percents=None, step_size=None, step_percent=None):
|
39
43
|
"""SearchAutoEnlargePolicyResponse
|
40
44
|
|
41
45
|
The model defined in huaweicloud sdk
|
@@ -52,6 +56,10 @@ class SearchAutoEnlargePolicyResponse(SdkResponse):
|
|
52
56
|
:type trigger_available_percent: int
|
53
57
|
:param percents: 空间率集合。
|
54
58
|
:type percents: list[int]
|
59
|
+
:param step_size: 扩容步长,固定大小扩容方式。
|
60
|
+
:type step_size: int
|
61
|
+
:param step_percent: 扩容步长,百分比扩容方式。
|
62
|
+
:type step_percent: int
|
55
63
|
"""
|
56
64
|
|
57
65
|
super(SearchAutoEnlargePolicyResponse, self).__init__()
|
@@ -62,6 +70,8 @@ class SearchAutoEnlargePolicyResponse(SdkResponse):
|
|
62
70
|
self._max_volume_size = None
|
63
71
|
self._trigger_available_percent = None
|
64
72
|
self._percents = None
|
73
|
+
self._step_size = None
|
74
|
+
self._step_percent = None
|
65
75
|
self.discriminator = None
|
66
76
|
|
67
77
|
if switch_option is not None:
|
@@ -76,6 +86,10 @@ class SearchAutoEnlargePolicyResponse(SdkResponse):
|
|
76
86
|
self.trigger_available_percent = trigger_available_percent
|
77
87
|
if percents is not None:
|
78
88
|
self.percents = percents
|
89
|
+
if step_size is not None:
|
90
|
+
self.step_size = step_size
|
91
|
+
if step_percent is not None:
|
92
|
+
self.step_percent = step_percent
|
79
93
|
|
80
94
|
@property
|
81
95
|
def switch_option(self):
|
@@ -209,6 +223,50 @@ class SearchAutoEnlargePolicyResponse(SdkResponse):
|
|
209
223
|
"""
|
210
224
|
self._percents = percents
|
211
225
|
|
226
|
+
@property
|
227
|
+
def step_size(self):
|
228
|
+
"""Gets the step_size of this SearchAutoEnlargePolicyResponse.
|
229
|
+
|
230
|
+
扩容步长,固定大小扩容方式。
|
231
|
+
|
232
|
+
:return: The step_size of this SearchAutoEnlargePolicyResponse.
|
233
|
+
:rtype: int
|
234
|
+
"""
|
235
|
+
return self._step_size
|
236
|
+
|
237
|
+
@step_size.setter
|
238
|
+
def step_size(self, step_size):
|
239
|
+
"""Sets the step_size of this SearchAutoEnlargePolicyResponse.
|
240
|
+
|
241
|
+
扩容步长,固定大小扩容方式。
|
242
|
+
|
243
|
+
:param step_size: The step_size of this SearchAutoEnlargePolicyResponse.
|
244
|
+
:type step_size: int
|
245
|
+
"""
|
246
|
+
self._step_size = step_size
|
247
|
+
|
248
|
+
@property
|
249
|
+
def step_percent(self):
|
250
|
+
"""Gets the step_percent of this SearchAutoEnlargePolicyResponse.
|
251
|
+
|
252
|
+
扩容步长,百分比扩容方式。
|
253
|
+
|
254
|
+
:return: The step_percent of this SearchAutoEnlargePolicyResponse.
|
255
|
+
:rtype: int
|
256
|
+
"""
|
257
|
+
return self._step_percent
|
258
|
+
|
259
|
+
@step_percent.setter
|
260
|
+
def step_percent(self, step_percent):
|
261
|
+
"""Sets the step_percent of this SearchAutoEnlargePolicyResponse.
|
262
|
+
|
263
|
+
扩容步长,百分比扩容方式。
|
264
|
+
|
265
|
+
:param step_percent: The step_percent of this SearchAutoEnlargePolicyResponse.
|
266
|
+
:type step_percent: int
|
267
|
+
"""
|
268
|
+
self._step_percent = step_percent
|
269
|
+
|
212
270
|
def to_dict(self):
|
213
271
|
"""Returns the model properties as a dict"""
|
214
272
|
result = {}
|
@@ -25,7 +25,9 @@ class ShowUpgradeCandidateVersionsResponse(SdkResponse):
|
|
25
25
|
'roll_upgrade_progress': 'RollUpgradeProgress',
|
26
26
|
'upgrade_candidate_versions': 'list[str]',
|
27
27
|
'hotfix_upgrade_candidate_versions': 'list[str]',
|
28
|
-
'hotfix_rollback_candidate_versions': 'list[str]'
|
28
|
+
'hotfix_rollback_candidate_versions': 'list[str]',
|
29
|
+
'hotfix_upgrade_infos': 'HotfixUpgradeInfos',
|
30
|
+
'hotfix_rollback_infos': 'HotfixRollbackInfos'
|
29
31
|
}
|
30
32
|
|
31
33
|
attribute_map = {
|
@@ -36,10 +38,12 @@ class ShowUpgradeCandidateVersionsResponse(SdkResponse):
|
|
36
38
|
'roll_upgrade_progress': 'roll_upgrade_progress',
|
37
39
|
'upgrade_candidate_versions': 'upgrade_candidate_versions',
|
38
40
|
'hotfix_upgrade_candidate_versions': 'hotfix_upgrade_candidate_versions',
|
39
|
-
'hotfix_rollback_candidate_versions': 'hotfix_rollback_candidate_versions'
|
41
|
+
'hotfix_rollback_candidate_versions': 'hotfix_rollback_candidate_versions',
|
42
|
+
'hotfix_upgrade_infos': 'hotfix_upgrade_infos',
|
43
|
+
'hotfix_rollback_infos': 'hotfix_rollback_infos'
|
40
44
|
}
|
41
45
|
|
42
|
-
def __init__(self, upgrade_type_list=None, rollback_enabled=None, source_version=None, target_version=None, roll_upgrade_progress=None, upgrade_candidate_versions=None, hotfix_upgrade_candidate_versions=None, hotfix_rollback_candidate_versions=None):
|
46
|
+
def __init__(self, upgrade_type_list=None, rollback_enabled=None, source_version=None, target_version=None, roll_upgrade_progress=None, upgrade_candidate_versions=None, hotfix_upgrade_candidate_versions=None, hotfix_rollback_candidate_versions=None, hotfix_upgrade_infos=None, hotfix_rollback_infos=None):
|
43
47
|
"""ShowUpgradeCandidateVersionsResponse
|
44
48
|
|
45
49
|
The model defined in huaweicloud sdk
|
@@ -60,6 +64,10 @@ class ShowUpgradeCandidateVersionsResponse(SdkResponse):
|
|
60
64
|
:type hotfix_upgrade_candidate_versions: list[str]
|
61
65
|
:param hotfix_rollback_candidate_versions: 可以回滚的热补丁版本,滚动升级中返回空数组
|
62
66
|
:type hotfix_rollback_candidate_versions: list[str]
|
67
|
+
:param hotfix_upgrade_infos:
|
68
|
+
:type hotfix_upgrade_infos: :class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixUpgradeInfos`
|
69
|
+
:param hotfix_rollback_infos:
|
70
|
+
:type hotfix_rollback_infos: :class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixRollbackInfos`
|
63
71
|
"""
|
64
72
|
|
65
73
|
super(ShowUpgradeCandidateVersionsResponse, self).__init__()
|
@@ -72,6 +80,8 @@ class ShowUpgradeCandidateVersionsResponse(SdkResponse):
|
|
72
80
|
self._upgrade_candidate_versions = None
|
73
81
|
self._hotfix_upgrade_candidate_versions = None
|
74
82
|
self._hotfix_rollback_candidate_versions = None
|
83
|
+
self._hotfix_upgrade_infos = None
|
84
|
+
self._hotfix_rollback_infos = None
|
75
85
|
self.discriminator = None
|
76
86
|
|
77
87
|
if upgrade_type_list is not None:
|
@@ -90,6 +100,10 @@ class ShowUpgradeCandidateVersionsResponse(SdkResponse):
|
|
90
100
|
self.hotfix_upgrade_candidate_versions = hotfix_upgrade_candidate_versions
|
91
101
|
if hotfix_rollback_candidate_versions is not None:
|
92
102
|
self.hotfix_rollback_candidate_versions = hotfix_rollback_candidate_versions
|
103
|
+
if hotfix_upgrade_infos is not None:
|
104
|
+
self.hotfix_upgrade_infos = hotfix_upgrade_infos
|
105
|
+
if hotfix_rollback_infos is not None:
|
106
|
+
self.hotfix_rollback_infos = hotfix_rollback_infos
|
93
107
|
|
94
108
|
@property
|
95
109
|
def upgrade_type_list(self):
|
@@ -263,6 +277,42 @@ class ShowUpgradeCandidateVersionsResponse(SdkResponse):
|
|
263
277
|
"""
|
264
278
|
self._hotfix_rollback_candidate_versions = hotfix_rollback_candidate_versions
|
265
279
|
|
280
|
+
@property
|
281
|
+
def hotfix_upgrade_infos(self):
|
282
|
+
"""Gets the hotfix_upgrade_infos of this ShowUpgradeCandidateVersionsResponse.
|
283
|
+
|
284
|
+
:return: The hotfix_upgrade_infos of this ShowUpgradeCandidateVersionsResponse.
|
285
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixUpgradeInfos`
|
286
|
+
"""
|
287
|
+
return self._hotfix_upgrade_infos
|
288
|
+
|
289
|
+
@hotfix_upgrade_infos.setter
|
290
|
+
def hotfix_upgrade_infos(self, hotfix_upgrade_infos):
|
291
|
+
"""Sets the hotfix_upgrade_infos of this ShowUpgradeCandidateVersionsResponse.
|
292
|
+
|
293
|
+
:param hotfix_upgrade_infos: The hotfix_upgrade_infos of this ShowUpgradeCandidateVersionsResponse.
|
294
|
+
:type hotfix_upgrade_infos: :class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixUpgradeInfos`
|
295
|
+
"""
|
296
|
+
self._hotfix_upgrade_infos = hotfix_upgrade_infos
|
297
|
+
|
298
|
+
@property
|
299
|
+
def hotfix_rollback_infos(self):
|
300
|
+
"""Gets the hotfix_rollback_infos of this ShowUpgradeCandidateVersionsResponse.
|
301
|
+
|
302
|
+
:return: The hotfix_rollback_infos of this ShowUpgradeCandidateVersionsResponse.
|
303
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixRollbackInfos`
|
304
|
+
"""
|
305
|
+
return self._hotfix_rollback_infos
|
306
|
+
|
307
|
+
@hotfix_rollback_infos.setter
|
308
|
+
def hotfix_rollback_infos(self, hotfix_rollback_infos):
|
309
|
+
"""Sets the hotfix_rollback_infos of this ShowUpgradeCandidateVersionsResponse.
|
310
|
+
|
311
|
+
:param hotfix_rollback_infos: The hotfix_rollback_infos of this ShowUpgradeCandidateVersionsResponse.
|
312
|
+
:type hotfix_rollback_infos: :class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixRollbackInfos`
|
313
|
+
"""
|
314
|
+
self._hotfix_rollback_infos = hotfix_rollback_infos
|
315
|
+
|
266
316
|
def to_dict(self):
|
267
317
|
"""Returns the model properties as a dict"""
|
268
318
|
result = {}
|