huaweicloudsdkgaussdb 3.1.144__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.
Files changed (23) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +13 -0
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +743 -388
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +743 -388
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +13 -0
  5. huaweicloudsdkgaussdb/v3/model/delete_taurus_db_node_processes_request.py +196 -0
  6. huaweicloudsdkgaussdb/v3/model/delete_taurus_db_node_processes_request_body.py +114 -0
  7. huaweicloudsdkgaussdb/v3/model/delete_taurus_db_node_processes_response.py +145 -0
  8. huaweicloudsdkgaussdb/v3/model/list_taurus_db_node_processes_request.py +229 -0
  9. huaweicloudsdkgaussdb/v3/model/list_taurus_db_node_processes_response.py +145 -0
  10. huaweicloudsdkgaussdb/v3/model/modify_auto_expand_policy_req.py +202 -0
  11. huaweicloudsdkgaussdb/v3/model/modify_auto_expand_policy_request.py +168 -0
  12. huaweicloudsdkgaussdb/v3/model/modify_auto_expand_policy_response.py +116 -0
  13. huaweicloudsdkgaussdb/v3/model/modify_node_data_ip_request.py +3 -3
  14. huaweicloudsdkgaussdb/v3/model/show_auto_expand_policy_request.py +143 -0
  15. huaweicloudsdkgaussdb/v3/model/show_auto_expand_policy_response.py +203 -0
  16. huaweicloudsdkgaussdb/v3/model/show_restore_available_tables_request.py +257 -0
  17. huaweicloudsdkgaussdb/v3/model/show_restore_available_tables_response.py +145 -0
  18. huaweicloudsdkgaussdb/v3/model/taurus_db_process_info.py +310 -0
  19. {huaweicloudsdkgaussdb-3.1.144.dist-info → huaweicloudsdkgaussdb-3.1.146.dist-info}/METADATA +2 -2
  20. {huaweicloudsdkgaussdb-3.1.144.dist-info → huaweicloudsdkgaussdb-3.1.146.dist-info}/RECORD +23 -10
  21. {huaweicloudsdkgaussdb-3.1.144.dist-info → huaweicloudsdkgaussdb-3.1.146.dist-info}/LICENSE +0 -0
  22. {huaweicloudsdkgaussdb-3.1.144.dist-info → huaweicloudsdkgaussdb-3.1.146.dist-info}/WHEEL +0 -0
  23. {huaweicloudsdkgaussdb-3.1.144.dist-info → huaweicloudsdkgaussdb-3.1.146.dist-info}/top_level.txt +0 -0
@@ -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