huaweicloudsdkgaussdb 3.1.145__py2.py3-none-any.whl → 3.1.146__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.
- huaweicloudsdkgaussdb/v3/__init__.py +7 -0
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +211 -0
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +211 -0
- huaweicloudsdkgaussdb/v3/model/__init__.py +7 -0
- huaweicloudsdkgaussdb/v3/model/modify_auto_expand_policy_req.py +202 -0
- huaweicloudsdkgaussdb/v3/model/modify_auto_expand_policy_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/modify_auto_expand_policy_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/modify_node_data_ip_request.py +3 -3
- huaweicloudsdkgaussdb/v3/model/show_auto_expand_policy_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/show_auto_expand_policy_response.py +203 -0
- huaweicloudsdkgaussdb/v3/model/show_restore_available_tables_request.py +257 -0
- huaweicloudsdkgaussdb/v3/model/show_restore_available_tables_response.py +145 -0
- {huaweicloudsdkgaussdb-3.1.145.dist-info → huaweicloudsdkgaussdb-3.1.146.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.145.dist-info → huaweicloudsdkgaussdb-3.1.146.dist-info}/RECORD +17 -10
- {huaweicloudsdkgaussdb-3.1.145.dist-info → huaweicloudsdkgaussdb-3.1.146.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.145.dist-info → huaweicloudsdkgaussdb-3.1.146.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.145.dist-info → huaweicloudsdkgaussdb-3.1.146.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 ShowAutoExpandPolicyResponse(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
|
+
'switch_option': 'bool',
|
22
|
+
'limit_size': 'int',
|
23
|
+
'trigger_available_percent': 'int',
|
24
|
+
'step_percent': 'int'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'switch_option': 'switch_option',
|
29
|
+
'limit_size': 'limit_size',
|
30
|
+
'trigger_available_percent': 'trigger_available_percent',
|
31
|
+
'step_percent': 'step_percent'
|
32
|
+
}
|
33
|
+
|
34
|
+
def __init__(self, switch_option=None, limit_size=None, trigger_available_percent=None, step_percent=None):
|
35
|
+
r"""ShowAutoExpandPolicyResponse
|
36
|
+
|
37
|
+
The model defined in huaweicloud sdk
|
38
|
+
|
39
|
+
:param switch_option: **参数解释**: 自动扩容策略开关。
|
40
|
+
:type switch_option: bool
|
41
|
+
:param limit_size: **参数解释**: 存储自动扩容上限,单位GB。
|
42
|
+
:type limit_size: int
|
43
|
+
:param trigger_available_percent: **参数解释**: 可用存储空间率。
|
44
|
+
:type trigger_available_percent: int
|
45
|
+
:param step_percent: **参数解释**: 扩容步长百分比。
|
46
|
+
:type step_percent: int
|
47
|
+
"""
|
48
|
+
|
49
|
+
super(ShowAutoExpandPolicyResponse, self).__init__()
|
50
|
+
|
51
|
+
self._switch_option = None
|
52
|
+
self._limit_size = None
|
53
|
+
self._trigger_available_percent = None
|
54
|
+
self._step_percent = None
|
55
|
+
self.discriminator = None
|
56
|
+
|
57
|
+
if switch_option is not None:
|
58
|
+
self.switch_option = switch_option
|
59
|
+
if limit_size is not None:
|
60
|
+
self.limit_size = limit_size
|
61
|
+
if trigger_available_percent is not None:
|
62
|
+
self.trigger_available_percent = trigger_available_percent
|
63
|
+
if step_percent is not None:
|
64
|
+
self.step_percent = step_percent
|
65
|
+
|
66
|
+
@property
|
67
|
+
def switch_option(self):
|
68
|
+
r"""Gets the switch_option of this ShowAutoExpandPolicyResponse.
|
69
|
+
|
70
|
+
**参数解释**: 自动扩容策略开关。
|
71
|
+
|
72
|
+
:return: The switch_option of this ShowAutoExpandPolicyResponse.
|
73
|
+
:rtype: bool
|
74
|
+
"""
|
75
|
+
return self._switch_option
|
76
|
+
|
77
|
+
@switch_option.setter
|
78
|
+
def switch_option(self, switch_option):
|
79
|
+
r"""Sets the switch_option of this ShowAutoExpandPolicyResponse.
|
80
|
+
|
81
|
+
**参数解释**: 自动扩容策略开关。
|
82
|
+
|
83
|
+
:param switch_option: The switch_option of this ShowAutoExpandPolicyResponse.
|
84
|
+
:type switch_option: bool
|
85
|
+
"""
|
86
|
+
self._switch_option = switch_option
|
87
|
+
|
88
|
+
@property
|
89
|
+
def limit_size(self):
|
90
|
+
r"""Gets the limit_size of this ShowAutoExpandPolicyResponse.
|
91
|
+
|
92
|
+
**参数解释**: 存储自动扩容上限,单位GB。
|
93
|
+
|
94
|
+
:return: The limit_size of this ShowAutoExpandPolicyResponse.
|
95
|
+
:rtype: int
|
96
|
+
"""
|
97
|
+
return self._limit_size
|
98
|
+
|
99
|
+
@limit_size.setter
|
100
|
+
def limit_size(self, limit_size):
|
101
|
+
r"""Sets the limit_size of this ShowAutoExpandPolicyResponse.
|
102
|
+
|
103
|
+
**参数解释**: 存储自动扩容上限,单位GB。
|
104
|
+
|
105
|
+
:param limit_size: The limit_size of this ShowAutoExpandPolicyResponse.
|
106
|
+
:type limit_size: int
|
107
|
+
"""
|
108
|
+
self._limit_size = limit_size
|
109
|
+
|
110
|
+
@property
|
111
|
+
def trigger_available_percent(self):
|
112
|
+
r"""Gets the trigger_available_percent of this ShowAutoExpandPolicyResponse.
|
113
|
+
|
114
|
+
**参数解释**: 可用存储空间率。
|
115
|
+
|
116
|
+
:return: The trigger_available_percent of this ShowAutoExpandPolicyResponse.
|
117
|
+
:rtype: int
|
118
|
+
"""
|
119
|
+
return self._trigger_available_percent
|
120
|
+
|
121
|
+
@trigger_available_percent.setter
|
122
|
+
def trigger_available_percent(self, trigger_available_percent):
|
123
|
+
r"""Sets the trigger_available_percent of this ShowAutoExpandPolicyResponse.
|
124
|
+
|
125
|
+
**参数解释**: 可用存储空间率。
|
126
|
+
|
127
|
+
:param trigger_available_percent: The trigger_available_percent of this ShowAutoExpandPolicyResponse.
|
128
|
+
:type trigger_available_percent: int
|
129
|
+
"""
|
130
|
+
self._trigger_available_percent = trigger_available_percent
|
131
|
+
|
132
|
+
@property
|
133
|
+
def step_percent(self):
|
134
|
+
r"""Gets the step_percent of this ShowAutoExpandPolicyResponse.
|
135
|
+
|
136
|
+
**参数解释**: 扩容步长百分比。
|
137
|
+
|
138
|
+
:return: The step_percent of this ShowAutoExpandPolicyResponse.
|
139
|
+
:rtype: int
|
140
|
+
"""
|
141
|
+
return self._step_percent
|
142
|
+
|
143
|
+
@step_percent.setter
|
144
|
+
def step_percent(self, step_percent):
|
145
|
+
r"""Sets the step_percent of this ShowAutoExpandPolicyResponse.
|
146
|
+
|
147
|
+
**参数解释**: 扩容步长百分比。
|
148
|
+
|
149
|
+
:param step_percent: The step_percent of this ShowAutoExpandPolicyResponse.
|
150
|
+
:type step_percent: int
|
151
|
+
"""
|
152
|
+
self._step_percent = step_percent
|
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, ShowAutoExpandPolicyResponse):
|
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,257 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowRestoreAvailableTablesRequest:
|
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
|
+
'restore_time': 'str',
|
23
|
+
'last_table_info': 'str',
|
24
|
+
'database_name': 'str',
|
25
|
+
'table_name': 'str'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'x_language': 'X-Language',
|
30
|
+
'instance_id': 'instance_id',
|
31
|
+
'restore_time': 'restore_time',
|
32
|
+
'last_table_info': 'last_table_info',
|
33
|
+
'database_name': 'database_name',
|
34
|
+
'table_name': 'table_name'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, x_language=None, instance_id=None, restore_time=None, last_table_info=None, database_name=None, table_name=None):
|
38
|
+
r"""ShowRestoreAvailableTablesRequest
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param x_language: **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us。 - zh-cn。 **默认值**: en-us。
|
43
|
+
:type x_language: str
|
44
|
+
:param instance_id: **参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
|
45
|
+
:type instance_id: str
|
46
|
+
:param restore_time: **参数解释**: 备份时间点。 **约束限制**: 格式为UNIX时间戳,单位是毫秒,时区为UTC标准时区。传参时需要将对应时区的时间转为标准时区对应的时间戳,比如,北京时区的时间点需要-8h后再转为时间戳。 **取值范围**: 通过[查询可恢复时间段](https://support.huaweicloud.com/api-taurusdb/ShowBackupRestoreTime.html)获取。 **默认取值**: 不涉及。
|
47
|
+
:type restore_time: str
|
48
|
+
:param last_table_info: **参数解释**: 是否是最新库表。 **约束限制**: 不涉及。 **取值范围**: - true:是最新库表。 - false:是恢复时间点库表。 **默认取值**: 不涉及。
|
49
|
+
:type last_table_info: str
|
50
|
+
:param database_name: **参数解释**: 数据库名称,模糊匹配。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
51
|
+
:type database_name: str
|
52
|
+
:param table_name: **参数解释**: 表名称,模糊匹配。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
53
|
+
:type table_name: str
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._x_language = None
|
59
|
+
self._instance_id = None
|
60
|
+
self._restore_time = None
|
61
|
+
self._last_table_info = None
|
62
|
+
self._database_name = None
|
63
|
+
self._table_name = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
if x_language is not None:
|
67
|
+
self.x_language = x_language
|
68
|
+
self.instance_id = instance_id
|
69
|
+
self.restore_time = restore_time
|
70
|
+
self.last_table_info = last_table_info
|
71
|
+
if database_name is not None:
|
72
|
+
self.database_name = database_name
|
73
|
+
if table_name is not None:
|
74
|
+
self.table_name = table_name
|
75
|
+
|
76
|
+
@property
|
77
|
+
def x_language(self):
|
78
|
+
r"""Gets the x_language of this ShowRestoreAvailableTablesRequest.
|
79
|
+
|
80
|
+
**参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us。 - zh-cn。 **默认值**: en-us。
|
81
|
+
|
82
|
+
:return: The x_language of this ShowRestoreAvailableTablesRequest.
|
83
|
+
:rtype: str
|
84
|
+
"""
|
85
|
+
return self._x_language
|
86
|
+
|
87
|
+
@x_language.setter
|
88
|
+
def x_language(self, x_language):
|
89
|
+
r"""Sets the x_language of this ShowRestoreAvailableTablesRequest.
|
90
|
+
|
91
|
+
**参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us。 - zh-cn。 **默认值**: en-us。
|
92
|
+
|
93
|
+
:param x_language: The x_language of this ShowRestoreAvailableTablesRequest.
|
94
|
+
:type x_language: str
|
95
|
+
"""
|
96
|
+
self._x_language = x_language
|
97
|
+
|
98
|
+
@property
|
99
|
+
def instance_id(self):
|
100
|
+
r"""Gets the instance_id of this ShowRestoreAvailableTablesRequest.
|
101
|
+
|
102
|
+
**参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
|
103
|
+
|
104
|
+
:return: The instance_id of this ShowRestoreAvailableTablesRequest.
|
105
|
+
:rtype: str
|
106
|
+
"""
|
107
|
+
return self._instance_id
|
108
|
+
|
109
|
+
@instance_id.setter
|
110
|
+
def instance_id(self, instance_id):
|
111
|
+
r"""Sets the instance_id of this ShowRestoreAvailableTablesRequest.
|
112
|
+
|
113
|
+
**参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
|
114
|
+
|
115
|
+
:param instance_id: The instance_id of this ShowRestoreAvailableTablesRequest.
|
116
|
+
:type instance_id: str
|
117
|
+
"""
|
118
|
+
self._instance_id = instance_id
|
119
|
+
|
120
|
+
@property
|
121
|
+
def restore_time(self):
|
122
|
+
r"""Gets the restore_time of this ShowRestoreAvailableTablesRequest.
|
123
|
+
|
124
|
+
**参数解释**: 备份时间点。 **约束限制**: 格式为UNIX时间戳,单位是毫秒,时区为UTC标准时区。传参时需要将对应时区的时间转为标准时区对应的时间戳,比如,北京时区的时间点需要-8h后再转为时间戳。 **取值范围**: 通过[查询可恢复时间段](https://support.huaweicloud.com/api-taurusdb/ShowBackupRestoreTime.html)获取。 **默认取值**: 不涉及。
|
125
|
+
|
126
|
+
:return: The restore_time of this ShowRestoreAvailableTablesRequest.
|
127
|
+
:rtype: str
|
128
|
+
"""
|
129
|
+
return self._restore_time
|
130
|
+
|
131
|
+
@restore_time.setter
|
132
|
+
def restore_time(self, restore_time):
|
133
|
+
r"""Sets the restore_time of this ShowRestoreAvailableTablesRequest.
|
134
|
+
|
135
|
+
**参数解释**: 备份时间点。 **约束限制**: 格式为UNIX时间戳,单位是毫秒,时区为UTC标准时区。传参时需要将对应时区的时间转为标准时区对应的时间戳,比如,北京时区的时间点需要-8h后再转为时间戳。 **取值范围**: 通过[查询可恢复时间段](https://support.huaweicloud.com/api-taurusdb/ShowBackupRestoreTime.html)获取。 **默认取值**: 不涉及。
|
136
|
+
|
137
|
+
:param restore_time: The restore_time of this ShowRestoreAvailableTablesRequest.
|
138
|
+
:type restore_time: str
|
139
|
+
"""
|
140
|
+
self._restore_time = restore_time
|
141
|
+
|
142
|
+
@property
|
143
|
+
def last_table_info(self):
|
144
|
+
r"""Gets the last_table_info of this ShowRestoreAvailableTablesRequest.
|
145
|
+
|
146
|
+
**参数解释**: 是否是最新库表。 **约束限制**: 不涉及。 **取值范围**: - true:是最新库表。 - false:是恢复时间点库表。 **默认取值**: 不涉及。
|
147
|
+
|
148
|
+
:return: The last_table_info of this ShowRestoreAvailableTablesRequest.
|
149
|
+
:rtype: str
|
150
|
+
"""
|
151
|
+
return self._last_table_info
|
152
|
+
|
153
|
+
@last_table_info.setter
|
154
|
+
def last_table_info(self, last_table_info):
|
155
|
+
r"""Sets the last_table_info of this ShowRestoreAvailableTablesRequest.
|
156
|
+
|
157
|
+
**参数解释**: 是否是最新库表。 **约束限制**: 不涉及。 **取值范围**: - true:是最新库表。 - false:是恢复时间点库表。 **默认取值**: 不涉及。
|
158
|
+
|
159
|
+
:param last_table_info: The last_table_info of this ShowRestoreAvailableTablesRequest.
|
160
|
+
:type last_table_info: str
|
161
|
+
"""
|
162
|
+
self._last_table_info = last_table_info
|
163
|
+
|
164
|
+
@property
|
165
|
+
def database_name(self):
|
166
|
+
r"""Gets the database_name of this ShowRestoreAvailableTablesRequest.
|
167
|
+
|
168
|
+
**参数解释**: 数据库名称,模糊匹配。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
169
|
+
|
170
|
+
:return: The database_name of this ShowRestoreAvailableTablesRequest.
|
171
|
+
:rtype: str
|
172
|
+
"""
|
173
|
+
return self._database_name
|
174
|
+
|
175
|
+
@database_name.setter
|
176
|
+
def database_name(self, database_name):
|
177
|
+
r"""Sets the database_name of this ShowRestoreAvailableTablesRequest.
|
178
|
+
|
179
|
+
**参数解释**: 数据库名称,模糊匹配。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
180
|
+
|
181
|
+
:param database_name: The database_name of this ShowRestoreAvailableTablesRequest.
|
182
|
+
:type database_name: str
|
183
|
+
"""
|
184
|
+
self._database_name = database_name
|
185
|
+
|
186
|
+
@property
|
187
|
+
def table_name(self):
|
188
|
+
r"""Gets the table_name of this ShowRestoreAvailableTablesRequest.
|
189
|
+
|
190
|
+
**参数解释**: 表名称,模糊匹配。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
191
|
+
|
192
|
+
:return: The table_name of this ShowRestoreAvailableTablesRequest.
|
193
|
+
:rtype: str
|
194
|
+
"""
|
195
|
+
return self._table_name
|
196
|
+
|
197
|
+
@table_name.setter
|
198
|
+
def table_name(self, table_name):
|
199
|
+
r"""Sets the table_name of this ShowRestoreAvailableTablesRequest.
|
200
|
+
|
201
|
+
**参数解释**: 表名称,模糊匹配。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
202
|
+
|
203
|
+
:param table_name: The table_name of this ShowRestoreAvailableTablesRequest.
|
204
|
+
:type table_name: str
|
205
|
+
"""
|
206
|
+
self._table_name = table_name
|
207
|
+
|
208
|
+
def to_dict(self):
|
209
|
+
"""Returns the model properties as a dict"""
|
210
|
+
result = {}
|
211
|
+
|
212
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
213
|
+
value = getattr(self, attr)
|
214
|
+
if isinstance(value, list):
|
215
|
+
result[attr] = list(map(
|
216
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
217
|
+
value
|
218
|
+
))
|
219
|
+
elif hasattr(value, "to_dict"):
|
220
|
+
result[attr] = value.to_dict()
|
221
|
+
elif isinstance(value, dict):
|
222
|
+
result[attr] = dict(map(
|
223
|
+
lambda item: (item[0], item[1].to_dict())
|
224
|
+
if hasattr(item[1], "to_dict") else item,
|
225
|
+
value.items()
|
226
|
+
))
|
227
|
+
else:
|
228
|
+
if attr in self.sensitive_list:
|
229
|
+
result[attr] = "****"
|
230
|
+
else:
|
231
|
+
result[attr] = value
|
232
|
+
|
233
|
+
return result
|
234
|
+
|
235
|
+
def to_str(self):
|
236
|
+
"""Returns the string representation of the model"""
|
237
|
+
import simplejson as json
|
238
|
+
if six.PY2:
|
239
|
+
import sys
|
240
|
+
reload(sys)
|
241
|
+
sys.setdefaultencoding("utf-8")
|
242
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
243
|
+
|
244
|
+
def __repr__(self):
|
245
|
+
"""For `print`"""
|
246
|
+
return self.to_str()
|
247
|
+
|
248
|
+
def __eq__(self, other):
|
249
|
+
"""Returns true if both objects are equal"""
|
250
|
+
if not isinstance(other, ShowRestoreAvailableTablesRequest):
|
251
|
+
return False
|
252
|
+
|
253
|
+
return self.__dict__ == other.__dict__
|
254
|
+
|
255
|
+
def __ne__(self, other):
|
256
|
+
"""Returns true if both objects are not equal"""
|
257
|
+
return not self == other
|
@@ -0,0 +1,145 @@
|
|
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 ShowRestoreAvailableTablesResponse(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
|
+
'total_tables': 'int',
|
22
|
+
'databases': 'list[RestoreDatabaseInfos]'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'total_tables': 'total_tables',
|
27
|
+
'databases': 'databases'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, total_tables=None, databases=None):
|
31
|
+
r"""ShowRestoreAvailableTablesResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param total_tables: **参数解释**: 实例总表数。 **取值范围**: 不涉及。
|
36
|
+
:type total_tables: int
|
37
|
+
:param databases: **参数解释**: 数据库信息。
|
38
|
+
:type databases: list[:class:`huaweicloudsdkgaussdb.v3.RestoreDatabaseInfos`]
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ShowRestoreAvailableTablesResponse, self).__init__()
|
42
|
+
|
43
|
+
self._total_tables = None
|
44
|
+
self._databases = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if total_tables is not None:
|
48
|
+
self.total_tables = total_tables
|
49
|
+
if databases is not None:
|
50
|
+
self.databases = databases
|
51
|
+
|
52
|
+
@property
|
53
|
+
def total_tables(self):
|
54
|
+
r"""Gets the total_tables of this ShowRestoreAvailableTablesResponse.
|
55
|
+
|
56
|
+
**参数解释**: 实例总表数。 **取值范围**: 不涉及。
|
57
|
+
|
58
|
+
:return: The total_tables of this ShowRestoreAvailableTablesResponse.
|
59
|
+
:rtype: int
|
60
|
+
"""
|
61
|
+
return self._total_tables
|
62
|
+
|
63
|
+
@total_tables.setter
|
64
|
+
def total_tables(self, total_tables):
|
65
|
+
r"""Sets the total_tables of this ShowRestoreAvailableTablesResponse.
|
66
|
+
|
67
|
+
**参数解释**: 实例总表数。 **取值范围**: 不涉及。
|
68
|
+
|
69
|
+
:param total_tables: The total_tables of this ShowRestoreAvailableTablesResponse.
|
70
|
+
:type total_tables: int
|
71
|
+
"""
|
72
|
+
self._total_tables = total_tables
|
73
|
+
|
74
|
+
@property
|
75
|
+
def databases(self):
|
76
|
+
r"""Gets the databases of this ShowRestoreAvailableTablesResponse.
|
77
|
+
|
78
|
+
**参数解释**: 数据库信息。
|
79
|
+
|
80
|
+
:return: The databases of this ShowRestoreAvailableTablesResponse.
|
81
|
+
:rtype: list[:class:`huaweicloudsdkgaussdb.v3.RestoreDatabaseInfos`]
|
82
|
+
"""
|
83
|
+
return self._databases
|
84
|
+
|
85
|
+
@databases.setter
|
86
|
+
def databases(self, databases):
|
87
|
+
r"""Sets the databases of this ShowRestoreAvailableTablesResponse.
|
88
|
+
|
89
|
+
**参数解释**: 数据库信息。
|
90
|
+
|
91
|
+
:param databases: The databases of this ShowRestoreAvailableTablesResponse.
|
92
|
+
:type databases: list[:class:`huaweicloudsdkgaussdb.v3.RestoreDatabaseInfos`]
|
93
|
+
"""
|
94
|
+
self._databases = databases
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, ShowRestoreAvailableTablesResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
return not self == other
|
{huaweicloudsdkgaussdb-3.1.145.dist-info → huaweicloudsdkgaussdb-3.1.146.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: huaweicloudsdkgaussdb
|
3
|
-
Version: 3.1.
|
3
|
+
Version: 3.1.146
|
4
4
|
Summary: GaussDB
|
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.146
|
26
26
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|