huaweicloudsdkgaussdbforopengauss 3.1.90__py2.py3-none-any.whl → 3.1.92__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 +32 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +789 -20
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +789 -20
- huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +32 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/cn_info_before_reduce.py +231 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_slow_log_download_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_slow_log_download_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_instance_tag_request.py +171 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_instance_tag_response.py +174 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/instance_log_file.py +260 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_cn_infos_before_reduce_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_cn_infos_before_reduce_response.py +174 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_error_logs_request.py +257 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_error_logs_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_top_io_traffics_request.py +257 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_top_io_traffics_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_upgrade_request.py +230 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/roll_upgrade_progress.py +231 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/search_auto_enlarge_policy_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/search_auto_enlarge_policy_response.py +261 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_backup_policy.py +4 -4
- huaweicloudsdkgaussdbforopengauss/v3/model/show_error_log_switch_status_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_error_log_switch_status_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_slow_log_download_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_slow_log_download_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py +315 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/slow_log_download_info.py +463 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_request_body.py +114 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/top_io_info.py +405 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_action_info.py +144 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_error_response_body.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_type_info.py +173 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/RECORD +42 -10
- {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,230 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class OpenGaussUpgradeRequest:
|
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
|
+
'upgrade_type': 'str',
|
21
|
+
'upgrade_action': 'str',
|
22
|
+
'target_version': 'str',
|
23
|
+
'upgrade_shard_num': 'int',
|
24
|
+
'upgrade_az': 'str'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'upgrade_type': 'upgrade_type',
|
29
|
+
'upgrade_action': 'upgrade_action',
|
30
|
+
'target_version': 'target_version',
|
31
|
+
'upgrade_shard_num': 'upgrade_shard_num',
|
32
|
+
'upgrade_az': 'upgrade_az'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, upgrade_type=None, upgrade_action=None, target_version=None, upgrade_shard_num=None, upgrade_az=None):
|
36
|
+
"""OpenGaussUpgradeRequest
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param upgrade_type: 实例升级类型,包括就地升级,灰度升级,热补丁升级三种,三种升级方式的异同,详见接口描述。 inplace 就地升级 grey 灰度升级 hotfix 热补丁升级。
|
41
|
+
:type upgrade_type: str
|
42
|
+
:param upgrade_action: 实例升级操作,就地升级无需传值。灰度升级包括升级自动提交,升级待观察,提交升级,升级回退四种。热补丁升级包括升级自动提交,升级回退两种。详见接口描述。 upgradeAutoCommit 升级自动提交 upgrade 升级待观察 commit 提交升级 rollback 升级回退。
|
43
|
+
:type upgrade_action: str
|
44
|
+
:param target_version: 实例升级目标版本,非必填。如果未传值则默认升级到当前实例的优选版本。仅热补丁升级方式下支持传入多个值,升级操作为升级自动提交,则实例版本从小到大批量升级,升级操作为升级回退,则实例版本从大到小批量回退。
|
45
|
+
:type target_version: str
|
46
|
+
:param upgrade_shard_num: 分布式实例灰度升级,滚动升级分片数。分布式实例灰度升级,升级待观察必填。该值不能大于实例未升级分片总数。
|
47
|
+
:type upgrade_shard_num: int
|
48
|
+
:param upgrade_az: 主备版实例灰度升级,滚动升级az值,可以支持多az一起升级,az之间以’,’分割。集中式实例灰度升级,升级待观察必填。该值不能填入不属于该实例的az值。
|
49
|
+
:type upgrade_az: str
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._upgrade_type = None
|
55
|
+
self._upgrade_action = None
|
56
|
+
self._target_version = None
|
57
|
+
self._upgrade_shard_num = None
|
58
|
+
self._upgrade_az = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
self.upgrade_type = upgrade_type
|
62
|
+
if upgrade_action is not None:
|
63
|
+
self.upgrade_action = upgrade_action
|
64
|
+
if target_version is not None:
|
65
|
+
self.target_version = target_version
|
66
|
+
if upgrade_shard_num is not None:
|
67
|
+
self.upgrade_shard_num = upgrade_shard_num
|
68
|
+
if upgrade_az is not None:
|
69
|
+
self.upgrade_az = upgrade_az
|
70
|
+
|
71
|
+
@property
|
72
|
+
def upgrade_type(self):
|
73
|
+
"""Gets the upgrade_type of this OpenGaussUpgradeRequest.
|
74
|
+
|
75
|
+
实例升级类型,包括就地升级,灰度升级,热补丁升级三种,三种升级方式的异同,详见接口描述。 inplace 就地升级 grey 灰度升级 hotfix 热补丁升级。
|
76
|
+
|
77
|
+
:return: The upgrade_type of this OpenGaussUpgradeRequest.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._upgrade_type
|
81
|
+
|
82
|
+
@upgrade_type.setter
|
83
|
+
def upgrade_type(self, upgrade_type):
|
84
|
+
"""Sets the upgrade_type of this OpenGaussUpgradeRequest.
|
85
|
+
|
86
|
+
实例升级类型,包括就地升级,灰度升级,热补丁升级三种,三种升级方式的异同,详见接口描述。 inplace 就地升级 grey 灰度升级 hotfix 热补丁升级。
|
87
|
+
|
88
|
+
:param upgrade_type: The upgrade_type of this OpenGaussUpgradeRequest.
|
89
|
+
:type upgrade_type: str
|
90
|
+
"""
|
91
|
+
self._upgrade_type = upgrade_type
|
92
|
+
|
93
|
+
@property
|
94
|
+
def upgrade_action(self):
|
95
|
+
"""Gets the upgrade_action of this OpenGaussUpgradeRequest.
|
96
|
+
|
97
|
+
实例升级操作,就地升级无需传值。灰度升级包括升级自动提交,升级待观察,提交升级,升级回退四种。热补丁升级包括升级自动提交,升级回退两种。详见接口描述。 upgradeAutoCommit 升级自动提交 upgrade 升级待观察 commit 提交升级 rollback 升级回退。
|
98
|
+
|
99
|
+
:return: The upgrade_action of this OpenGaussUpgradeRequest.
|
100
|
+
:rtype: str
|
101
|
+
"""
|
102
|
+
return self._upgrade_action
|
103
|
+
|
104
|
+
@upgrade_action.setter
|
105
|
+
def upgrade_action(self, upgrade_action):
|
106
|
+
"""Sets the upgrade_action of this OpenGaussUpgradeRequest.
|
107
|
+
|
108
|
+
实例升级操作,就地升级无需传值。灰度升级包括升级自动提交,升级待观察,提交升级,升级回退四种。热补丁升级包括升级自动提交,升级回退两种。详见接口描述。 upgradeAutoCommit 升级自动提交 upgrade 升级待观察 commit 提交升级 rollback 升级回退。
|
109
|
+
|
110
|
+
:param upgrade_action: The upgrade_action of this OpenGaussUpgradeRequest.
|
111
|
+
:type upgrade_action: str
|
112
|
+
"""
|
113
|
+
self._upgrade_action = upgrade_action
|
114
|
+
|
115
|
+
@property
|
116
|
+
def target_version(self):
|
117
|
+
"""Gets the target_version of this OpenGaussUpgradeRequest.
|
118
|
+
|
119
|
+
实例升级目标版本,非必填。如果未传值则默认升级到当前实例的优选版本。仅热补丁升级方式下支持传入多个值,升级操作为升级自动提交,则实例版本从小到大批量升级,升级操作为升级回退,则实例版本从大到小批量回退。
|
120
|
+
|
121
|
+
:return: The target_version of this OpenGaussUpgradeRequest.
|
122
|
+
:rtype: str
|
123
|
+
"""
|
124
|
+
return self._target_version
|
125
|
+
|
126
|
+
@target_version.setter
|
127
|
+
def target_version(self, target_version):
|
128
|
+
"""Sets the target_version of this OpenGaussUpgradeRequest.
|
129
|
+
|
130
|
+
实例升级目标版本,非必填。如果未传值则默认升级到当前实例的优选版本。仅热补丁升级方式下支持传入多个值,升级操作为升级自动提交,则实例版本从小到大批量升级,升级操作为升级回退,则实例版本从大到小批量回退。
|
131
|
+
|
132
|
+
:param target_version: The target_version of this OpenGaussUpgradeRequest.
|
133
|
+
:type target_version: str
|
134
|
+
"""
|
135
|
+
self._target_version = target_version
|
136
|
+
|
137
|
+
@property
|
138
|
+
def upgrade_shard_num(self):
|
139
|
+
"""Gets the upgrade_shard_num of this OpenGaussUpgradeRequest.
|
140
|
+
|
141
|
+
分布式实例灰度升级,滚动升级分片数。分布式实例灰度升级,升级待观察必填。该值不能大于实例未升级分片总数。
|
142
|
+
|
143
|
+
:return: The upgrade_shard_num of this OpenGaussUpgradeRequest.
|
144
|
+
:rtype: int
|
145
|
+
"""
|
146
|
+
return self._upgrade_shard_num
|
147
|
+
|
148
|
+
@upgrade_shard_num.setter
|
149
|
+
def upgrade_shard_num(self, upgrade_shard_num):
|
150
|
+
"""Sets the upgrade_shard_num of this OpenGaussUpgradeRequest.
|
151
|
+
|
152
|
+
分布式实例灰度升级,滚动升级分片数。分布式实例灰度升级,升级待观察必填。该值不能大于实例未升级分片总数。
|
153
|
+
|
154
|
+
:param upgrade_shard_num: The upgrade_shard_num of this OpenGaussUpgradeRequest.
|
155
|
+
:type upgrade_shard_num: int
|
156
|
+
"""
|
157
|
+
self._upgrade_shard_num = upgrade_shard_num
|
158
|
+
|
159
|
+
@property
|
160
|
+
def upgrade_az(self):
|
161
|
+
"""Gets the upgrade_az of this OpenGaussUpgradeRequest.
|
162
|
+
|
163
|
+
主备版实例灰度升级,滚动升级az值,可以支持多az一起升级,az之间以’,’分割。集中式实例灰度升级,升级待观察必填。该值不能填入不属于该实例的az值。
|
164
|
+
|
165
|
+
:return: The upgrade_az of this OpenGaussUpgradeRequest.
|
166
|
+
:rtype: str
|
167
|
+
"""
|
168
|
+
return self._upgrade_az
|
169
|
+
|
170
|
+
@upgrade_az.setter
|
171
|
+
def upgrade_az(self, upgrade_az):
|
172
|
+
"""Sets the upgrade_az of this OpenGaussUpgradeRequest.
|
173
|
+
|
174
|
+
主备版实例灰度升级,滚动升级az值,可以支持多az一起升级,az之间以’,’分割。集中式实例灰度升级,升级待观察必填。该值不能填入不属于该实例的az值。
|
175
|
+
|
176
|
+
:param upgrade_az: The upgrade_az of this OpenGaussUpgradeRequest.
|
177
|
+
:type upgrade_az: str
|
178
|
+
"""
|
179
|
+
self._upgrade_az = upgrade_az
|
180
|
+
|
181
|
+
def to_dict(self):
|
182
|
+
"""Returns the model properties as a dict"""
|
183
|
+
result = {}
|
184
|
+
|
185
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
186
|
+
value = getattr(self, attr)
|
187
|
+
if isinstance(value, list):
|
188
|
+
result[attr] = list(map(
|
189
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
190
|
+
value
|
191
|
+
))
|
192
|
+
elif hasattr(value, "to_dict"):
|
193
|
+
result[attr] = value.to_dict()
|
194
|
+
elif isinstance(value, dict):
|
195
|
+
result[attr] = dict(map(
|
196
|
+
lambda item: (item[0], item[1].to_dict())
|
197
|
+
if hasattr(item[1], "to_dict") else item,
|
198
|
+
value.items()
|
199
|
+
))
|
200
|
+
else:
|
201
|
+
if attr in self.sensitive_list:
|
202
|
+
result[attr] = "****"
|
203
|
+
else:
|
204
|
+
result[attr] = value
|
205
|
+
|
206
|
+
return result
|
207
|
+
|
208
|
+
def to_str(self):
|
209
|
+
"""Returns the string representation of the model"""
|
210
|
+
import simplejson as json
|
211
|
+
if six.PY2:
|
212
|
+
import sys
|
213
|
+
reload(sys)
|
214
|
+
sys.setdefaultencoding("utf-8")
|
215
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
216
|
+
|
217
|
+
def __repr__(self):
|
218
|
+
"""For `print`"""
|
219
|
+
return self.to_str()
|
220
|
+
|
221
|
+
def __eq__(self, other):
|
222
|
+
"""Returns true if both objects are equal"""
|
223
|
+
if not isinstance(other, OpenGaussUpgradeRequest):
|
224
|
+
return False
|
225
|
+
|
226
|
+
return self.__dict__ == other.__dict__
|
227
|
+
|
228
|
+
def __ne__(self, other):
|
229
|
+
"""Returns true if both objects are not equal"""
|
230
|
+
return not self == other
|
@@ -0,0 +1,231 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class RollUpgradeProgress:
|
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
|
+
'upgraded_dn_group_numbers': 'str',
|
21
|
+
'total_dn_group_numbers': 'str',
|
22
|
+
'not_fully_upgraded_az': 'str',
|
23
|
+
'already_upgraded_az': 'str',
|
24
|
+
'az_description_map': 'dict(str, str)'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'upgraded_dn_group_numbers': 'upgraded_dn_group_numbers',
|
29
|
+
'total_dn_group_numbers': 'total_dn_group_numbers',
|
30
|
+
'not_fully_upgraded_az': 'not_fully_upgraded_az',
|
31
|
+
'already_upgraded_az': 'already_upgraded_az',
|
32
|
+
'az_description_map': 'az_description_map'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, upgraded_dn_group_numbers=None, total_dn_group_numbers=None, not_fully_upgraded_az=None, already_upgraded_az=None, az_description_map=None):
|
36
|
+
"""RollUpgradeProgress
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param upgraded_dn_group_numbers: 已升级分片数,非独立部署返回null
|
41
|
+
:type upgraded_dn_group_numbers: str
|
42
|
+
:param total_dn_group_numbers: 总分片数,非独立部署返回null
|
43
|
+
:type total_dn_group_numbers: str
|
44
|
+
:param not_fully_upgraded_az: 未完成升级的az,以“,”隔开,独立部署返回null
|
45
|
+
:type not_fully_upgraded_az: str
|
46
|
+
:param already_upgraded_az: 已升级az,以“,”隔开,独立部署返回null
|
47
|
+
:type already_upgraded_az: str
|
48
|
+
:param az_description_map: az描述键值对Map<String,String>
|
49
|
+
:type az_description_map: dict(str, str)
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._upgraded_dn_group_numbers = None
|
55
|
+
self._total_dn_group_numbers = None
|
56
|
+
self._not_fully_upgraded_az = None
|
57
|
+
self._already_upgraded_az = None
|
58
|
+
self._az_description_map = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
if upgraded_dn_group_numbers is not None:
|
62
|
+
self.upgraded_dn_group_numbers = upgraded_dn_group_numbers
|
63
|
+
if total_dn_group_numbers is not None:
|
64
|
+
self.total_dn_group_numbers = total_dn_group_numbers
|
65
|
+
if not_fully_upgraded_az is not None:
|
66
|
+
self.not_fully_upgraded_az = not_fully_upgraded_az
|
67
|
+
if already_upgraded_az is not None:
|
68
|
+
self.already_upgraded_az = already_upgraded_az
|
69
|
+
if az_description_map is not None:
|
70
|
+
self.az_description_map = az_description_map
|
71
|
+
|
72
|
+
@property
|
73
|
+
def upgraded_dn_group_numbers(self):
|
74
|
+
"""Gets the upgraded_dn_group_numbers of this RollUpgradeProgress.
|
75
|
+
|
76
|
+
已升级分片数,非独立部署返回null
|
77
|
+
|
78
|
+
:return: The upgraded_dn_group_numbers of this RollUpgradeProgress.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._upgraded_dn_group_numbers
|
82
|
+
|
83
|
+
@upgraded_dn_group_numbers.setter
|
84
|
+
def upgraded_dn_group_numbers(self, upgraded_dn_group_numbers):
|
85
|
+
"""Sets the upgraded_dn_group_numbers of this RollUpgradeProgress.
|
86
|
+
|
87
|
+
已升级分片数,非独立部署返回null
|
88
|
+
|
89
|
+
:param upgraded_dn_group_numbers: The upgraded_dn_group_numbers of this RollUpgradeProgress.
|
90
|
+
:type upgraded_dn_group_numbers: str
|
91
|
+
"""
|
92
|
+
self._upgraded_dn_group_numbers = upgraded_dn_group_numbers
|
93
|
+
|
94
|
+
@property
|
95
|
+
def total_dn_group_numbers(self):
|
96
|
+
"""Gets the total_dn_group_numbers of this RollUpgradeProgress.
|
97
|
+
|
98
|
+
总分片数,非独立部署返回null
|
99
|
+
|
100
|
+
:return: The total_dn_group_numbers of this RollUpgradeProgress.
|
101
|
+
:rtype: str
|
102
|
+
"""
|
103
|
+
return self._total_dn_group_numbers
|
104
|
+
|
105
|
+
@total_dn_group_numbers.setter
|
106
|
+
def total_dn_group_numbers(self, total_dn_group_numbers):
|
107
|
+
"""Sets the total_dn_group_numbers of this RollUpgradeProgress.
|
108
|
+
|
109
|
+
总分片数,非独立部署返回null
|
110
|
+
|
111
|
+
:param total_dn_group_numbers: The total_dn_group_numbers of this RollUpgradeProgress.
|
112
|
+
:type total_dn_group_numbers: str
|
113
|
+
"""
|
114
|
+
self._total_dn_group_numbers = total_dn_group_numbers
|
115
|
+
|
116
|
+
@property
|
117
|
+
def not_fully_upgraded_az(self):
|
118
|
+
"""Gets the not_fully_upgraded_az of this RollUpgradeProgress.
|
119
|
+
|
120
|
+
未完成升级的az,以“,”隔开,独立部署返回null
|
121
|
+
|
122
|
+
:return: The not_fully_upgraded_az of this RollUpgradeProgress.
|
123
|
+
:rtype: str
|
124
|
+
"""
|
125
|
+
return self._not_fully_upgraded_az
|
126
|
+
|
127
|
+
@not_fully_upgraded_az.setter
|
128
|
+
def not_fully_upgraded_az(self, not_fully_upgraded_az):
|
129
|
+
"""Sets the not_fully_upgraded_az of this RollUpgradeProgress.
|
130
|
+
|
131
|
+
未完成升级的az,以“,”隔开,独立部署返回null
|
132
|
+
|
133
|
+
:param not_fully_upgraded_az: The not_fully_upgraded_az of this RollUpgradeProgress.
|
134
|
+
:type not_fully_upgraded_az: str
|
135
|
+
"""
|
136
|
+
self._not_fully_upgraded_az = not_fully_upgraded_az
|
137
|
+
|
138
|
+
@property
|
139
|
+
def already_upgraded_az(self):
|
140
|
+
"""Gets the already_upgraded_az of this RollUpgradeProgress.
|
141
|
+
|
142
|
+
已升级az,以“,”隔开,独立部署返回null
|
143
|
+
|
144
|
+
:return: The already_upgraded_az of this RollUpgradeProgress.
|
145
|
+
:rtype: str
|
146
|
+
"""
|
147
|
+
return self._already_upgraded_az
|
148
|
+
|
149
|
+
@already_upgraded_az.setter
|
150
|
+
def already_upgraded_az(self, already_upgraded_az):
|
151
|
+
"""Sets the already_upgraded_az of this RollUpgradeProgress.
|
152
|
+
|
153
|
+
已升级az,以“,”隔开,独立部署返回null
|
154
|
+
|
155
|
+
:param already_upgraded_az: The already_upgraded_az of this RollUpgradeProgress.
|
156
|
+
:type already_upgraded_az: str
|
157
|
+
"""
|
158
|
+
self._already_upgraded_az = already_upgraded_az
|
159
|
+
|
160
|
+
@property
|
161
|
+
def az_description_map(self):
|
162
|
+
"""Gets the az_description_map of this RollUpgradeProgress.
|
163
|
+
|
164
|
+
az描述键值对Map<String,String>
|
165
|
+
|
166
|
+
:return: The az_description_map of this RollUpgradeProgress.
|
167
|
+
:rtype: dict(str, str)
|
168
|
+
"""
|
169
|
+
return self._az_description_map
|
170
|
+
|
171
|
+
@az_description_map.setter
|
172
|
+
def az_description_map(self, az_description_map):
|
173
|
+
"""Sets the az_description_map of this RollUpgradeProgress.
|
174
|
+
|
175
|
+
az描述键值对Map<String,String>
|
176
|
+
|
177
|
+
:param az_description_map: The az_description_map of this RollUpgradeProgress.
|
178
|
+
:type az_description_map: dict(str, str)
|
179
|
+
"""
|
180
|
+
self._az_description_map = az_description_map
|
181
|
+
|
182
|
+
def to_dict(self):
|
183
|
+
"""Returns the model properties as a dict"""
|
184
|
+
result = {}
|
185
|
+
|
186
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
187
|
+
value = getattr(self, attr)
|
188
|
+
if isinstance(value, list):
|
189
|
+
result[attr] = list(map(
|
190
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
191
|
+
value
|
192
|
+
))
|
193
|
+
elif hasattr(value, "to_dict"):
|
194
|
+
result[attr] = value.to_dict()
|
195
|
+
elif isinstance(value, dict):
|
196
|
+
result[attr] = dict(map(
|
197
|
+
lambda item: (item[0], item[1].to_dict())
|
198
|
+
if hasattr(item[1], "to_dict") else item,
|
199
|
+
value.items()
|
200
|
+
))
|
201
|
+
else:
|
202
|
+
if attr in self.sensitive_list:
|
203
|
+
result[attr] = "****"
|
204
|
+
else:
|
205
|
+
result[attr] = value
|
206
|
+
|
207
|
+
return result
|
208
|
+
|
209
|
+
def to_str(self):
|
210
|
+
"""Returns the string representation of the model"""
|
211
|
+
import simplejson as json
|
212
|
+
if six.PY2:
|
213
|
+
import sys
|
214
|
+
reload(sys)
|
215
|
+
sys.setdefaultencoding("utf-8")
|
216
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
217
|
+
|
218
|
+
def __repr__(self):
|
219
|
+
"""For `print`"""
|
220
|
+
return self.to_str()
|
221
|
+
|
222
|
+
def __eq__(self, other):
|
223
|
+
"""Returns true if both objects are equal"""
|
224
|
+
if not isinstance(other, RollUpgradeProgress):
|
225
|
+
return False
|
226
|
+
|
227
|
+
return self.__dict__ == other.__dict__
|
228
|
+
|
229
|
+
def __ne__(self, other):
|
230
|
+
"""Returns true if both objects are not equal"""
|
231
|
+
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 SearchAutoEnlargePolicyRequest:
|
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
|
+
'instance_id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'x_language': 'X-Language',
|
26
|
+
'instance_id': 'instance_id'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, x_language=None, instance_id=None):
|
30
|
+
"""SearchAutoEnlargePolicyRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param x_language: 语言
|
35
|
+
:type x_language: str
|
36
|
+
:param instance_id: 实例ID。
|
37
|
+
:type instance_id: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._x_language = None
|
43
|
+
self._instance_id = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if x_language is not None:
|
47
|
+
self.x_language = x_language
|
48
|
+
self.instance_id = instance_id
|
49
|
+
|
50
|
+
@property
|
51
|
+
def x_language(self):
|
52
|
+
"""Gets the x_language of this SearchAutoEnlargePolicyRequest.
|
53
|
+
|
54
|
+
语言
|
55
|
+
|
56
|
+
:return: The x_language of this SearchAutoEnlargePolicyRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._x_language
|
60
|
+
|
61
|
+
@x_language.setter
|
62
|
+
def x_language(self, x_language):
|
63
|
+
"""Sets the x_language of this SearchAutoEnlargePolicyRequest.
|
64
|
+
|
65
|
+
语言
|
66
|
+
|
67
|
+
:param x_language: The x_language of this SearchAutoEnlargePolicyRequest.
|
68
|
+
:type x_language: str
|
69
|
+
"""
|
70
|
+
self._x_language = x_language
|
71
|
+
|
72
|
+
@property
|
73
|
+
def instance_id(self):
|
74
|
+
"""Gets the instance_id of this SearchAutoEnlargePolicyRequest.
|
75
|
+
|
76
|
+
实例ID。
|
77
|
+
|
78
|
+
:return: The instance_id of this SearchAutoEnlargePolicyRequest.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._instance_id
|
82
|
+
|
83
|
+
@instance_id.setter
|
84
|
+
def instance_id(self, instance_id):
|
85
|
+
"""Sets the instance_id of this SearchAutoEnlargePolicyRequest.
|
86
|
+
|
87
|
+
实例ID。
|
88
|
+
|
89
|
+
:param instance_id: The instance_id of this SearchAutoEnlargePolicyRequest.
|
90
|
+
:type instance_id: str
|
91
|
+
"""
|
92
|
+
self._instance_id = instance_id
|
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, SearchAutoEnlargePolicyRequest):
|
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
|